Object.freezing proxies should freeze or throw?
doodad-js Admin
doodadjs at gmail.com
Tue Aug 9 18:37:56 UTC 2016
“Of course, we can still agree that too much, by definition, is not a good idea ;)”
Thanks, that was my point. But my example was not appropriated. It occurs that I’ve misread MDN:
Source: <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/set> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/set
“If the following invariants are violated, the proxy will throw a <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError> TypeError:”
But just below :
“In strict mode, a false return value from the set handler will throw a <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError> TypeError exception.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160809/05d408ad/attachment-0001.html>
More information about the es-discuss
mailing list