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

source ·
pub unsafe extern "C" fn JS_DeletePropertyById(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    id: Handle<PropertyKey>,
    result: *mut ObjectOpResult,
) -> bool
Expand description

Delete a property. This is the C++ equivalent of result = Reflect.deleteProperty(obj, id).

This function has a result out parameter that most callers don’t need. Unless you can pass through an ObjectOpResult provided by your caller, it’s probably best to use the JS_DeletePropertyById signature with just 3 arguments.

Implements: ES6 [[Delete]] internal method.