Search completed in 0.91 seconds.
9 results for "JSStrictPropertyOp":
JSPropertyOp
Mozilla › Projects › SpiderMonkey › JSAPI reference › JSPropertyOp
jspropertyop and jsstrictpropertyop are the type of property getter and setter callbacks in the jsapi.
... syntax typedef bool (* jspropertyop)(jscontext *cx, js::handleobject obj, js::handleid id, js::mutablehandlevalue vp); typedef bool (* jsstrictpropertyop)(jscontext *cx, js::handleobject obj, js::handleid id, bool strict, js::mutablehandlevalue vp); // added in spidermonkey 1.9.3 name type description cx jscontext * the context in which the property access is taking place.
... strict bool (jsstrictpropertyop only) if strict is true, treating the assignment as strict mode code.
...And 4 more matches
JSClass
Mozilla › Projects › SpiderMonkey › JSAPI reference › JSClass
syntax struct jsclass { const char *name; uint32_t flags; /* optional since spidermonkey 37 */ jspropertyop addproperty; jsdeletepropertyop delproperty; jspropertyop getproperty; jsstrictpropertyop setproperty; jsenumerateop enumerate; jsresolveop resolve; jsconvertop convert; /* obsolete since spidermonkey 44 */ /* optional since spidermonkey 25 */ jsfinalizeop finalize; /* optional */ jsclassinternal reserved0; /* obsolete since spidermonkey 13 */ jscheckaccessop checkaccess; /* obsolete since spidermonkey 2...
... setproperty jsstrictpropertyop a hook called when setting a property.
JS_DefineElement
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS DefineElement
er = nullptr, jsnative setter = nullptr); bool js_defineelement(jscontext *cx, js::handleobject obj, uint32_t index, double value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); /* obsolete since jsapi 32 */ js_defineelement(jscontext *cx, jsobject *obj, uint32_t index, jsval value, jspropertyop getter, jsstrictpropertyop setter, unsigned attrs); name type description cx jscontext * the context in which to create the new property.
... setter jsnative or jsstrictpropertyop setproperty method for specifying a new property value.
JS_PropertyStub
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS PropertyStub
js_strictpropertystub is of type jsstrictpropertyop, the type of setter callback.
... see also mxr id search for js_propertystub mxr id search for js_strictpropertystub jspropertyop jsstrictpropertyop bug 1103152 - removed js_deletepropertystub, js_enumeratestub, js_resolvestub, and js_convertstub bug 736978 - removed js_finalizestub bug 1113369 -- added result parameter ...
SpiderMonkey 1.8.5
Mozilla › Projects › SpiderMonkey › Releases › 1.8.5
the type of setters has changed from jspropertyop to jsstrictpropertyop (to accomodate es5 strict mode).
... jsxdrapi changes were missed jsstrictpropertyop for setters (affects jsclass) - maybe general notes about es5 strict mode changes in jsapi tricks like argv[-2] not guaranteed to work any more; is js_callee or similar instead ...
JSAPI Cookbook
Mozilla › Projects › SpiderMonkey › JSAPI Cookbook
/* jsapi */ if (!js_defineproperty(cx, obj, "prop", js::undefinedvalue(), (jspropertyop) getpropfunc, (jsstrictpropertyop) setpropfunc, jsprop_shared | jsprop_native_accessors | jsprop_enumerate)) { return false; } defining a read-only property with only a getter // javascript object.defineproperty(obj, "prop", {get: getpropfunc, enumerable: true}); in the jsapi version, to signify that the property is read-only, pass null for the setter.
Property attributes
Mozilla › Projects › SpiderMonkey › JSAPI reference › Property attributes
mxr id search for jsprop_permanent jsprop_propop_accessors passed to js_define(uc)property* and js_defineelement if getters/setters are jspropertyop/jsstrictpropertyop added in spidermonkey 38.
JSAPI reference
Mozilla › Projects › SpiderMonkey › JSAPI reference
jsclass method types: jspropertyop jsstrictpropertyop added in spidermonkey 1.9.3 jsdeletepropertyop added in spidermonkey 24 jsenumerateop jsnewenumerateop jsresolveop jsconvertop jsfinalizeop jshasinstanceop jstraceop jscheckaccessop obsolete jsxdrobjectop obsolete since jsapi 13 jsnewresolveop obsolete since jsapi 36 jsmarkop obsolete since jsapi 5 jsgetobjectops obsolete since javascript 1.8.5 jsreserveslotsop obsolete since jav...
SpiderMonkey 1.8.7
Mozilla › Projects › SpiderMonkey › Releases › 1.8.7
jsxdrapi changes were missed jsstrictpropertyop for setters (affects jsclass) - maybe general notes about es5 strict mode changes in jsapi tricks like argv[-2] not guaranteed to work any more; is js_callee or similar instead ...