Search completed in 1.18 seconds.
5 results for "js::objectopresult":
JS_DefineProperty
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS DefineProperty
ntext *cx, JS::HandleObject obj, const char16_t *name, size_t namelen, double value, unsigned attrs, JSNative getter = nullptr, JSNative setter = nullptr); // ---- Added in SpiderMonkey 45 ---- bool JS_DefinePropertyById(JSContext *cx, JS::HandleObject obj, JS::HandleId id, JS::Handle<JSPropertyDescriptor> desc, JS::ObjectOpResult &result); bool JS_DefinePropertyById(JSContext *cx, JS::HandleObject obj, JS::HandleId id, JS::Handle<JSPropertyDescriptor> desc); bool JS_DefineUCProperty(JSContext *cx, JS::HandleObject obj, const char16_t *name, size_t namelen, JS::Handle<JSPropertyDescriptor> desc); // ---- Added in SpiderMonkey 1.8.1 ---- bool JS_DefinePropertyById(JSContext *cx...
... engine will call each time the property's value is accessed; or NULL. setter JSNative The property setter callback, which the JavaScript engine will call each time the property is assigned; or NULL. attrs unsigned Property attributes. desc JS::Handle&lt;JSPropertyDescriptor&gt; The property descriptor for the property to be defined. result JS::ObjectOpResult &amp; (out parameter) Receives the result of the operation. Description JS_DefineProperty defines a single property in a specified object, obj. JS_DefineUCProperty is the Unicode version of the function. JS_DefinePropertyById is the same but takes a JS::HandleId for the property name. JS_DefineProperty is the fundamental operation on which several more convenient, higher-level functio...
JS_DeleteProperty
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS DeleteProperty
Removes a specified property from an object. Syntax bool JS_DeleteProperty(JSContext *cx, JS::HandleObject obj, const char *name); bool JS_DeletePropertyById(JSContext *cx, JS::HandleObject obj, jsid id); // Added in SpiderMonkey 1.8.1 // Added in SpiderMonkey 45 bool JS_DeleteProperty(JSContext *cx, JS::HandleObject obj, const char *name, JS::ObjectOpResult &result); bool JS_DeletePropertyById(JSContext *cx, JS::HandleObject obj, JS::HandleId id, JS::ObjectOpResult &result); bool JS_DeleteUCProperty(JSContext *cx, JS::HandleObject obj, const char16_t *name, size_t namelen, JS::ObjectOpResult &result); Name Type Description cx JSContext * Pointer to a JS context from which to derive runtime information. Re...
...DSAFE build, the caller must be in a request on this JSContext. obj JS::HandleObject Object from which to delete a property. name or id const char * or jsid or const char16_t * Name of the property to delete. namelen size_t (only in JS_DeleteUCProperty) The length of name in characters; or -1 to indicate that name is null-terminated. result JS::ObjectOpResult &amp; (out parameter) Receives the result of the operation. Description JS_DeleteProperty removes a specified property, name, from an object, obj. JS_DeletePropertyById is the same but takes a jsid for the property name. These functions are identical to JS_DeleteProperty2 and JS_DeletePropertyById2 except that they do not have an out parameter. First, a property lookup is performed. ...
JS_DeleteElement
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS DeleteElement
Removes a specified element or numeric property from an object. Syntax bool JS_DeleteElement(JSContext *cx, JS::HandleObject obj, uint32_t index); // Added in SpiderMonkey 45 bool JS_DeleteElement(JSContext *cx, JS::HandleObject obj, uint32_t index, JS::ObjectOpResult &result); Name Type Description cx JSContext * Pointer to a JS context from which to derive runtime information. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. obj JS::HandleObject Object from which to delete an element. index uint32_t Index number of the element to delete. result JS::ObjectOpResult &amp; (out parameter) Receives the result of the operation. Description JS_DeleteElement re...
JS_PreventExtensions
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS PreventExtensions
Attempts to forbid the addition of any new properties to an object. Syntax // Added in SpiderMonkey 45 bool JS_PreventExtensions(JSContext *cx, JS::HandleObject obj, JS::ObjectOpResult &result); // Obsolete since JSAPI 39 bool JS_PreventExtensions(JSContext *cx, JS::HandleObject obj, bool *succeeded); Name Type Description cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. obj JS::HandleObject Object to be made non-extensible. result JS::ObjectOpResult &amp; (out parameter) Receives the result of the operation. Added in SpiderMonkey 45 succeeded bool * Outparam indicating, on JSAPI success, whether the object is now non-extensible. Obsolete since JSAPI ...
JS_PropertyStub
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS PropertyStub
Default implementations of the required callbacks in JSClass. ...