WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / Proxy_isExtensible_handler.js
1 function test() {
2
3 var proxied = {};
4 var passed = false;
5 Object.isExtensible(
6   new Proxy(proxied, {
7     isExtensible: function (t) {
8       passed = t === proxied; return true;
9     }
10   })
11 );
12 return passed;
13       
14 }
15
16 if (!test())
17     throw new Error("Test failed");
18