pub type GenericNamedPropertyDeleterCallback<'s> = extern "C" fn(_: Local<'s, Name>, _: *const PropertyCallbackInfo);
Expand description

Interceptor for delete requests on an object.

Use [ReturnValue] to indicate whether the request was intercepted or not. If the deleter successfully intercepts the request, i.e., if the request should not be further executed, call [ReturnValue::set] with a boolean value. The value is used as the return value of delete. If the deleter does not intercept the request then it should not set the result and must not produce side effects.

Note: If you need to mimic the behavior of delete, i.e., throw in strict mode instead of returning false, use [PropertyCallbackArguments::should_throw_on_error] to determine if you are in strict mode.

See also ObjectTemplate::set_named_property_handler.