Saves and restores frame chains.
bool JS_SaveFrameChain(JSContext *cx); void JS_RestoreFrameChain(JSContext *cx);
||The context to query.|
These two functions are used to set aside
cx's call stack while that stack is inactive. After a call to
JS_SaveFrameChain, it looks as if there is no code running on
cx. Before calling
cx's call stack must be balanced and all nested calls to
JS_SaveFrameChain must have had matching
JS_SaveFrameChain deals with cx not having any code running on it.