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