Skip to main content

JS_SetConstructorBit

Function JS_SetConstructorBit 

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

JS_SetConstructorBit: whether new is allowed on a function object.

ยงSafety

func_obj must be a live JSValue.