Function script::dom::bindings::import::module::jsapi::JS_PreventExtensions

source ยท
pub unsafe extern "C" fn JS_PreventExtensions(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    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.