void JS_DestroyContext(JSContext *cx); void JS_DestroyContextNoGC(JSContext *cx); void JS_DestroyContextMaybeGC(JSContext *cx);
||The context to destroy.|
These functions destroy a context,
JS_DestroyContext additionally performs garbage collection to reclaim any memory that was being used by
cx's global object.
JS_DestroyContextNoGC does not perform garbage collection.
JS_DestroyContextMaybeGC may or may not perform garbage collection; the engine makes an educated guess as to whether enough memory would be reclaimed to justify the work.
JS_SetContextCallback has been called, this calls the callback.