Function mozjs_sys::jsapi::JS_SetImmutablePrototype
source ยท pub unsafe extern "C" fn JS_SetImmutablePrototype(
cx: *mut JSContext,
obj: HandleObject,
succeeded: *mut bool,
) -> bool
Expand description
Attempt to make the [[Prototype]] of |obj| immutable, such that any attempt to modify it will fail. If an error occurs during the attempt, return false (with a pending exception set, depending upon the nature of the error). If no error occurs, return true with |*succeeded| set to indicate whether the attempt successfully made the [[Prototype]] immutable.
This is a nonstandard internal method.