Function mozjs_sys::jsapi::JS_PreventExtensions
source ยท pub unsafe extern "C" fn JS_PreventExtensions(
cx: *mut JSContext,
obj: HandleObject,
result: *mut ObjectOpResult,
) -> bool
Expand description
Attempt to make |obj| non-extensible.
Not all failures are treated as errors. See the comment on JS::ObjectOpResult in js/public/Class.h.
Implements: ES6 [[PreventExtensions]] internal method.