Function mozjs::jsapi::JS_InitStandardClasses
[−]
[src]
pub unsafe extern "C" fn JS_InitStandardClasses(
cx: *mut JSContext,
obj: Handle<*mut JSObject>
) -> bool
Initialize standard JS class constructors, prototypes, and any top-level functions and constants associated with the standard classes (e.g. isNaN for Number).
NB: This sets cx's global object to obj if it was null.