NamedPropertyDescriptorCallback

Type Alias NamedPropertyDescriptorCallback 

Source
pub type NamedPropertyDescriptorCallback = unsafe extern "C" fn(SealedLocal<Name>, *const PropertyCallbackInfo<Value>) -> Intercepted;
Expand description

Interceptor for getOwnPropertyDescriptor requests on an object.

Use [ReturnValue::set] to set the return value of the intercepted request. The return value must be an object that can be converted to a [PropertyDescriptor], e.g., a Value returned from Object.getOwnPropertyDescriptor().

Note: If GetOwnPropertyDescriptor is intercepted, it will always return true, i.e., indicate that the property was found.

See also ObjectTemplate::set_named_property_handler.