quickjs
quickjs copied to clipboard
Implement Object.(get|set), make Object.set support callables, deprecate Context.(get|set|add_callable)
Extended alternative to #81:
-
Object.get
andObject.set
are implemented; -
Object.set
supports callables, merging in the code fromContext.add_callable
; -
Context.get_global
is implemented; -
Context.get
,Context.set
,Context.add_callable
are reimplemented usingContext.get_global
andObject.get
/Object.set
and are marked as deprecated.
The global
part was implemented in #104 as a property.