Skip to main content

runtime_ptr

Function runtime_ptr 

Source
pub fn runtime_ptr() -> *mut JsRuntime
Expand description

The runtime native modules register their classes against.

Stable for the life of the thread, which is what a module’s static JSClassID needs: JS_GetRuntime may be called from any of its functions, at any time.