Hi,

"All traps are optional. If missing (more precisely, if
handler[trapName] returns undefined), the proxy defaults to forwarding
the intercepted operation to its target object." [1]

Proxy({}, {get:undefined}).someProperty;

In this case, the description says that the operation is forwarded. I
would prefer a TypeError to be thrown in this case.

Opinions?

David

[1] http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to