pub type NamedPropertyQueryCallback = unsafe extern "C" fn(SealedLocal<Name>, *const PropertyCallbackInfo<Integer>) -> Intercepted;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.