BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Proxy_internal_get_calls_HasBinding.js
1 function test() {
2
3 // HasBinding -> Get -> [[Get]]
4 var get = [];
5 var p = new Proxy({foo:1}, { get: function(o, k) { get.push(k); return o[k]; }});
6 p[Symbol.unscopables] = p;
7 with(p) {
8   typeof foo;
9 }
10 return get[0] === Symbol.unscopables && get.slice(1) + '' === "foo";
11       
12 }
13
14 if (!test())
15     throw new Error("Test failed");
16