Expand description
Utilities for the implementation of JSAPI proxy handlers.
StructsΒ§
- Cross
Origin πProperties - Property and method specs that correspond to the elements of
CrossOriginProperties(O).
ConstantsΒ§
FunctionsΒ§
- append_
cross_ πorigin_ allowlisted_ prop_ keys - Append
Β« "then", @@toStringTag, @@hasInstance, @@isConcatSpreadable Β»toprops. This is used to implementCrossOriginOwnPropertyKeys. - cross_
origin_ πget - Implementation of
CrossOriginGet. - cross_
origin_ πget_ own_ property_ helper - Implementation of
CrossOriginGetOwnPropertyHelper. - cross_
origin_ π βhas_ own - Evaluate
CrossOriginGetOwnPropertyHelper(proxy, id) != null. SpiderMonkey-specific. - cross_
origin_ πown_ property_ keys - Implementation of
CrossOriginOwnPropertyKeys. - cross_
origin_ πproperty_ fallback - Implementation of
CrossOriginPropertyFallback. - cross_
origin_ π βset - Implementation of
CrossOriginSet. - define_
property π β - Defines an expando on the given
proxy. - delete π β
- Deletes an expando off the given
proxy. - ensure_
cross_ πorigin_ property_ holder - Get the holder for cross-origin properties for the current global of the
JSContext, creating one and storing it in a slot of the proxy object if it doesnβt exist yet. - ensure_
expando_ π βobject - Get the expando object, or create it if it doesnβt exist yet. Fails on JSAPI failure.
- get_
expando_ πobject - Get the expando object, or null if there is none.
- get_
getter_ πobject - get_
prototype_ π βif_ ordinary - If
proxy(underneath any functionally-transparent wrapper proxies) has as its[[GetPrototypeOf]]trap the ordinary[[GetPrototypeOf]]behavior defined for ordinary objects, set*is_ordinaryto true and storeobjβs prototype inproto. Otherwise set*isOrdinaryto false. In case of error, both outparams have unspecified value. - get_
setter_ πobject - id_
to_ πsource - init
- Initialize the infrastructure for DOM proxy objects.
- is_
accessor_ πdescriptor - https://tc39.es/ecma262/#sec-isaccessordescriptor
- is_
cross_ πorigin_ allowlisted_ prop - is_
data_ πdescriptor - https://tc39.es/ecma262/#sec-isdatadescriptor
- is_
extensible π β - Reports whether the object is Extensible
- maybe_
cross_ πorigin_ get_ prototype - Implementation of
[[GetPrototypeOf]]forLocation. - maybe_
cross_ π βorigin_ get_ prototype_ if_ ordinary_ rawcx - Safety
- maybe_
cross_ π βorigin_ set_ prototype_ rawcx - Implementation of
[[SetPrototypeOf]]forLocationandWindowProxy. - maybe_
cross_ π βorigin_ set_ rawcx - Implementation of
[[Set]]forLocation. - prevent_
extensions π β - Controls whether the Extensible bit can be changed
- report_
cross_ πorigin_ denial - Report a cross-origin denial for a property, Always returns
false, so it can be used asreturn report_cross_origin_denial(...);. - set_
property_ descriptor - Set the property descriptorβs object to
objand set it to enumerable, and writable ifreadonlyis true. - shadow_
check_ π βcallback - Determine if this id shadows any existing properties for this proxy.