pub type EnsureCanAddPrivateElementOp = Option<unsafe extern "C" fn(cx: *mut JSContext, val: HandleValue) -> bool>;Expand description
Install an context wide callback that implements the ECMA262 specification
host hook HostEnsureCanAddPrivateElement.
This hook, which should only be overriden for Web Browsers, examines the provided object to determine if the addition of a private field is allowed, throwing an exception and returning false if not.
The default implementation of this hook, which will be used unless overriden,
examines only proxy objects, and throws if the proxy handler returns true
from the handler method throwOnPrivateField().
Aliased Type§
pub enum EnsureCanAddPrivateElementOp {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<Value>) -> bool),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut JSContext, Handle<Value>) -> bool)
Some value of type T.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.