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