Skip to content

JSProxy constructor

Creates a new JS proxy for a target.

C#
public JSProxy(JSObject jsTarget, Handler handler, object? target = null, bool revocable = false)
parameterdescription
jsTargetJS target for the proxy.
handlerProxy handler callbacks (traps).
targetOptional target object to be wrapped by the JS target, or null if the JS target will not wrap anything.
revocableTrue if the proxy may be revoked; defaults to false.

Remarks

If a wrapped target object is provided, proxy callbacks my access that object by calling Unwrap.

See Also

Released under the MIT license