ProxyHandler<T>
package js.lib
import js.lib.Proxy
Available on js
Fields
optionalsetPrototypeOf:Null<(target:T, prototype:Null<{}>) ‑> Bool>
A trap for Object.setPrototypeOf
.
optionalset:Null<(target:T, property:String, value:Any, receiver:Null<{}>) ‑> Bool>
A trap for setting property values.
optionalpreventExtensions:Null<(target:T) ‑> Bool>
A trap for Object.preventExtensions
.
optionalownKeys:Null<(target:T) ‑> Array<String>>
A trap for Object.getOwnPropertyNames
and Object.getOwnPropertySymbols
.
optionalisExtensible:Null<(target:T) ‑> Bool>
A trap for Object.isExtensible
.
optionalhas:Null<(target:T, prop:String) ‑> Bool>
A trap for the in
operator.
optionalgetPrototypeOf:Null<(target:T) ‑> Null<{}>>
A trap for Object.getPrototypeOf
.
optionalgetOwnPropertyDescriptor:Null<(target:T, prop:String) ‑> Null<ObjectPropertyDescriptor>>
A trap for Object.getOwnPropertyDescriptor
.
optionalget:Null<(target:T, property:String, receiver:Null<{}>) ‑> Any>
A trap for getting property values.
optionaldeleteProperty:Null<(target:T, property:String) ‑> Bool>
A trap for the delete
operator.
optionaldefineProperty:Null<(target:T, property:String, descriptor:ObjectPropertyDescriptor) ‑> Bool>
A trap for Object.defineProperty
.
optionalconstruct:Null<(target:Class<T>, argumentsList:Array<Any>, newTarget:Class<Any>) ‑> Void>
A trap for the new
operator.
optionalapply:Null<(target:T, thisArg:{}, argumentsList:Array<Any>) ‑> Any>
A trap a function call.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/ProxyHandler.html