Entry: JS_LockGCThing (Function)
Summary: Protects a specified JS item from garbage collection.
Syntax:
JSBool JS_LockGCThing(JSContext *cx, void *thing);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
thing void * Pointer to the item to protect.
Description:
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 JS double, string, or object. This function is available only for backward compatibility with existing applications. Use JS_AddRoot instead of this function.
See also:
|
|
|