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.

Retrieves a pointer to the JSRuntime.

Syntax

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

Description

JS_GetRuntime retrieves a pointer to the JSRuntime with which a specified JSContext, cx, is associated. Each context is associated with a particular JSRuntime when it is created (see JS_NewContext); JS_GetRuntime provides a convenient, programmatic way to look up the association.

See Also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, Jorend, Mgjbot, Dria, MMondor, Nickolay, Tservo
 Last updated by: arai,