Search completed in 1.35 seconds.
7 results for "js_deletepropertystub":
JS_PropertyStub
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS PropertyStub
JS::MutableHandleValue vp, JS::ObjectOpResult &result); // Added in SpiderMonkey 45 bool JS_StrictPropertyStub(JSContext *cx, JS::HandleObject obj, JS::HandleId id, bool strict, JS::MutableHandleValue vp); // Obsolete since JSAPI 39 bool JS_ResolveStub(JSContext *cx, JS::HandleObject obj, JS::HandleId id, bool *resolvedp); // Obsolete since JSAPI 37 bool JS_DeletePropertyStub(JSContext *cx, JS::HandleObject obj, JS::HandleId id, bool *succeeded); // Obsolete since JSAPI 37 bool JS_EnumerateStub(JSContext *cx, JS::HandleObject obj); // Obsolete since JSAPI 37 bool JS_ConvertStub(JSContext *cx, JS::HandleObject obj, JSType type, JS::MutableHandleValue vp); // Obsolete since JSAPI 37 void JS_FinalizeStub(JSContext *cx, JSObject *ob...
...operty, and JSClass.getProperty. It behaves exactly like a property callback that accepts the default property behavior: it does nothing and returns true. JS_StrictPropertyStub is of type JSStrictPropertyOp, the type of setter callback. It can be used in JSClass.setProperty. It behaves exactly like a property callback that accepts the default property behavior: it does nothing and returns true. JS_DeletePropertyStub is of type JSDeletePropertyOp, the type of setter callback. It can be used in JSClass.delProperty. It behaves exactly like a property callback that accepts the default property behavior: it does nothing and returns true. JS_EnumerateStub is a stub for JSClass.enumerate. It does nothing and returns true. JS_ResolveStub is a stub for JSClass.resolve. It does nothing and returns true. JS_ConvertS...
...jects. ...
How to embed the JavaScript engine
Mozilla › Projects › SpiderMonkey › How to embed the JavaScript engine
he sample below the code. The code differs for each SpiderMonkey version, please choose right version for your SpiderMonkey. SpiderMonkey 24 // following code might be needed in some case // #define __STDC_LIMIT_MACROS // #include <stdint.h> #include "jsapi.h" /* The class of the global object. ...
..., JS_EncodeString(cx, str)); } JS_DestroyContext(cx); JS_DestroyRuntime(rt); JS_ShutDown(); return 0; } SpiderMonkey 31 // following code might be needed in some case // #define __STDC_LIMIT_MACROS // #include <stdint.h> #include "jsapi.h" /* The class of the global object. ...
JSAPI User Guide
Mozilla › Projects › SpiderMonkey › JSAPI User Guide
many different combinations of the parts, and giving applications precise control over how SpiderMonkey behaves. Here is the boilerplate code necessary for a minimal JSAPI application. It contains everything described above. #include "jsapi.h" using namespace JS; // The class of the global object. static JSClass globalClass = { "global", JSCLASS_GLOBAL_FLAGS, JS_PropertyStub, JS_DeletePropertyStub, JS_PropertyStub, JS_StrictPropertyStub, JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, nullptr, nullptr, nullptr, nullptr, JS_GlobalObjectTraceHook }; // The error reporter callback. void reportError(JSContext *cx, const char *message, JSErrorReport *report) { fprintf(stderr, "%s:%u:%s\n", report->filename ? report->filename : "[no filename]", ...
JSClass
Mozilla › Projects › SpiderMonkey › JSAPI reference › JSClass
one or more of the JSCLASS_* constants described in JSClass.flags. addProperty JSPropertyOp A hook called just after adding a new property. May modify the new property value. Use NULL or JS_PropertyStub (SpiderMonkey 31 or older) for default behavior. delProperty JSDeletePropertyOp A hook called when deleting a property. May veto. Use NULL or JS_DeletePropertyStub (SpiderMonkey 31 or older) for default behavior. getProperty JSPropertyOp A hook called when getting a property. This is the default getter for the class. Use NULL or JS_PropertyStub (SpiderMonkey 31 or older) for default behavior. setProperty JSStrictPropertyOp A hook called when setting a property. This is the default setter for the class. Wh...
JSAPI reference
Mozilla › Projects › SpiderMonkey › JSAPI reference
JSIteratorOp Obsolete since JSAPI 26 JSEqualityOp Obsolete since JavaScript 1.8.5 JSObjectOp Obsolete since JavaScript 1.8.5 JSObjectOps method types: In JS 1.8.5, ...
SpiderMonkey 24
Mozilla › Projects › SpiderMonkey › Releases › 24
scuss all API changes here... JSOPTION_STRICT has been renamed to JSOPTION_EXTRA_WARNINGS. JS_SetVersion has been removed, JS Version is now set on the compartment instead of context. JS_GetPrototype, takes context as first argument JS_EncodeStringToBuffer takes add context as first argument, JS_NewRuntime adds a JS_[USE|NO]_HELPER_THREADS flag Delete property in JSClass definitions now use JS_DeletePropertyStub Garbage Collection functions now take runtime argument Most garbage collection functions now take a runtime argument instead of a context. The one exception to this is JS_MaybeGC which still takes a context as argument. JavaScript shell changes Detail added/removed methods here... Known Issues Detail any known issues here... Future Direction ...insert details on future plans... Spid...
SpiderMonkey 38
Mozilla › Projects › SpiderMonkey › Releases › 38
AL_TO_INT (bug 952650) JSVAL_TO_OBJECT (bug 952650) JSVAL_TO_PRIVATE (bug 952650) JSVAL_TO_STRING (bug 952650) JS_ClearNonGlobalObject (bug 1043281) JS_CloneFunctionObject (bug 1089026) JS_CompileFunction (bug 1089026) JS_CompileUCFunction (bug 1089026) JS_ConvertArguments (bug 1125784) JS_ConvertArgumentsVA (bug 1125784) JS_ConvertStub (bug 1103152) JS_DefineOwnProperty (bug 1017323) JS_DeletePropertyStub (bug 1103152) JS_DoubleToInt32 (bug 1112774) JS_DoubleToUint32 (bug 1112774) JS_EnumerateStub (bug 1103152) JS_EvaluateScript (bug 1100579) JS_EvaluateUCScript (bug 1100579) JS_ExecuteScriptVersion (bug 1095660) JS_GetFlatStringChars (bug 1037869) JS_GetFunctionCallback (bug 1103269) JS_GetInternedStringChars (bug 1037869) JS_GetInternedStringCharsAndLength (bug 1037869) JS_GetStringCh...