quickjs icon indicating copy to clipboard operation
quickjs copied to clipboard

Implement Object.(get|set), make Object.set support callables, deprecate Context.(get|set|add_callable)

Open qwenger opened this issue 2 years ago • 1 comments

Extended alternative to #81:

  • Object.get and Object.set are implemented;
  • Object.set supports callables, merging in the code from Context.add_callable;
  • Context.get_global is implemented;
  • Context.get, Context.set, Context.add_callable are reimplemented using Context.get_global and Object.get/Object.set and are marked as deprecated.

qwenger avatar Apr 08 '22 21:04 qwenger

The global part was implemented in #104 as a property.

qwenger avatar May 02 '22 09:05 qwenger