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