Type Alias v8::GenericNamedPropertySetterCallback

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

Interceptor for set requests on an object.

Use [ReturnValue] to indicate whether the request was intercepted or not. If the setter successfully intercepts the request, i.e., if the request should not be further executed, call [ReturnValue::set]. If the setter 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.