Skip to main content

JS_CreateFromConstructor

Function JS_CreateFromConstructor 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_CreateFromConstructor( ctx: *mut JsContext, ctor: JsValue, _class_id: c_int, ) -> JsValue
Expand description

JS_CreateFromConstructor: an instance of class_id whose prototype comes from ctor.

ยงSafety

ctor must be a live JSValue.