Skip to main content

JS_SetPrototype

Function JS_SetPrototype 

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

JS_SetPrototype: [[SetPrototypeOf]], answering -1 for a refused cycle.

ยงSafety

obj and proto_val must be live JSValues.