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

JS_GetParentRuntime

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

This article covers features introduced in SpiderMonkey 31

Retrieve a pointer to the parent JSRuntime.

Syntax

JSRuntime *
JS_GetParentRuntime(JSContext *cx);
Name Type Description
cx JSContext * The context to query.

Description

JS_GetParentRuntime retrieves a pointer to the parent JSRuntime of the runtime for a specified JSContext. If the cx's runtime has no parent runtime, JS_GetParentRuntime returns cx's runtime itself.

See Also

Document Tags and Contributors

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