Retrieves a pointer to the JSRuntime.


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


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.

MXR ID Search for JS_GetRuntime

Document Tags and Contributors

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