WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / Proxy_internal_getOwnPropertyDescriptor_calls_Object.assign.js
1 function test() {
2
3 // Object.assign -> [[GetOwnProperty]]
4 var gopd = [];
5 var p = new Proxy({foo:1, bar:2},
6   { getOwnPropertyDescriptor: function(o, v) { gopd.push(v); return Object.getOwnPropertyDescriptor(o, v); }});
7 Object.assign({}, p);
8 return gopd + '' === "foo,bar";
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14