Proxy handers may throw under specific conditions

Published: | Categories: JavaScript | Creative Commons BY-SA 3.0

Description

The implementation of the Proxy object has been updated to comply more with the ES6 specification: The defineProperty and set handlers now need to explicitly return true to be successful, otherwise a TypeError exception will be thrown in strict mode. Also, when the window object is set as the target, those handlers will throw a TypeError starting with Firefox 39.

References