Type Alias v8::GenericNamedPropertyDescriptorCallback
source · pub type GenericNamedPropertyDescriptorCallback<'s> = extern "C" fn(_: Local<'s, Name>, _: *const PropertyCallbackInfo);
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.