This template is obsolete. Do not use it.
This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
Protect a specified JS item from garbage collection.
JSBool JS_LockGCThing(JSContext *cx, void *thing); JSBool JS_UnlockGCThing(JSContext *cx, void *thing);
Requires request. In a
||Pointer to the item to protect.|
JS_LockGCThing is a deprecated function that protects a specified item,
thing, associated with an executable script context,
cx, from garbage collection.
thing is a pointer to a
JS_UnlockGCThing removes a lock from a specified item,