Hi,

Currently, the wiki says:
"Invariant check: check whether the target’s prototype and the trap result
are identical."

If the trap can only report one value, there is almost no point in having a
trap.

A getPrototypeOf trap allows for proxies to potentially simulate __proto__
in a platform where it wouldn't exist natively. It only does if it's
possible to freely report any Object (as per ES5.1 - 8.6) or null.
Or maybe what was meant was only when the target is non-extensible?

David
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to