Skip to main content

JS_SetClassProto

Function JS_SetClassProto 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetClassProto( ctx: *mut JsContext, class_id: ClassId, obj: JsValue, )
Expand description

JS_SetClassProto: the prototype JS_NewObjectClass uses for class_id.

ยงSafety

ctx must be a live context and obj a live object JSValue whose reference this call consumes.