- From: Domenic Denicola <web-platform-tests-notifications@w3.org>
- Date: Tue, 03 May 2016 16:22:50 GMT
- To: public-web-platform-tests-notifications@w3.org
> Test something with a throwing prototype getter and make sure the exception is rethrown This is pretty hard to test without first failing the IsConstructor check. I think the following will work: ```js const BadConstructor = new Proxy(function () { }, { construct() { return {}; }, get() { const e = new Error("should be rethrown"); e.name = "rethrown"; throw e; } }); ``` View on GitHub: https://github.com/w3c/web-platform-tests/pull/2940#issuecomment-216583790
Received on Tuesday, 3 May 2016 16:23:02 UTC