Skip to main content

JS_SetConstructor

Function JS_SetConstructor 

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

JS_SetConstructor: make func_obj.prototype and proto.constructor point at each other.

ยงSafety

Both values must be live and both must be objects.