Type Alias v8::GenericNamedPropertyQueryCallback
source · pub type GenericNamedPropertyQueryCallback<'s> = extern "C" fn(_: Local<'s, Name>, _: *const PropertyCallbackInfo);
Expand description
Intercepts all requests that query the attributes of the property, e.g., getOwnPropertyDescriptor(), propertyIsEnumerable(), and defineProperty().
Use [ReturnValue::set] to set the property attributes. The value is an integer encoding a PropertyAttribute. If the property does not exist the callback should not set the result and must not produce side effects.
Note: Some functions query the property attributes internally, even though they do not return the attributes. For example, hasOwnProperty() can trigger this interceptor depending on the state of the object.