Module quickjs_runtime::quickjs_utils::objects
source · Expand description
Utils for working with objects
Functions§
- construct a new instance of a constructor
- create a new simple object, e.g.
let obj = {};
- create a new simple object, e.g.
let obj = {};
- define a getter/setter property
- define a getter/setter property
- Safety
- get a namespace object this is used to get nested object properties which are used as namespaces
- get the property names of an object
- get the property names of an object
- get a property from an object by name
- get the names of all properties of an object
- get the names of all properties of an object
- get a property from an object by name
- Object.prototypeOf
- Safety
- Safety
- set a property in an object, like
obj[propName] = val;
- set a property with specific flags
- set a property with specific flags set_property applies the default flag JS_PROP_C_W_E (Configurable, Writable, Enumerable) flags you can use here are
- set a property in an object, like
obj[propName] = val;
- Safety
- Safety