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