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