BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Proxy_internal_set_calls_Object.assign.js
1 function test() {
2
3 // Object.assign -> Set -> [[Set]]
4 var set = [];
5 var p = new Proxy({}, { set: function(o, k, v) { set.push(k); o[k] = v; return true; }});
6 Object.assign(p, { foo: 1, bar: 2 });
7 return set + '' === "foo,bar";
8       
9 }
10
11 if (!test())
12     throw new Error("Test failed");
13