Axel Rauschmayer wrote:
I would add: [[HasInstance]] -> @hasInstance
Yes, that one goes with @construct, and it seems safe to hook at base-level because only instanceof uses [[HasInstance]].
As Mark and Tom argued in the Proxy design docs, stratifying in a new proxy object is much safer when the trap is called all over, internally, and at points in ECMA-262 and real VMs where "usercode" is not expected to nest.
Further-base level traps need to be considered carefully on a case-by-case basis.
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

