Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_SaveFrameChain

This article needs a technical review. How you can help.

Saves and restores frame chains.

Syntax

bool
JS_SaveFrameChain(JSContext *cx);

void
JS_RestoreFrameChain(JSContext *cx);
Name Type Description
cx JSContext * The context to query.

Description

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 JS_RestoreFrameChain, cx's call stack must be balanced and all nested calls to JS_SaveFrameChain must have had matching JS_RestoreFrameChain calls.

JS_SaveFrameChain deals with cx not having any code running on it.

See Also

Document Tags and Contributors

 Contributors to this page: fscholz, arai
 Last updated by: fscholz,