Type Alias v8::GenericNamedPropertyDefinerCallback

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

Interceptor for defineProperty requests on an object.

Use [ReturnValue] to indicate whether the request was intercepted or not. If the definer successfully intercepts the request, i.e., if the request should not be further executed, call [ReturnValue::set]. If the definer did not intercept the request, i.e., if the request should be handled as if no interceptor is present, do not not call set() and do not produce side effects.

See also ObjectTemplate::set_named_property_handler.