blob: 8a3de1a0960c58873e9663fcb3dd1b3da483a6e9 [file] [log] [blame]
function test() {
// HasBinding -> Get -> [[Get]]
var get = [];
var p = new Proxy({foo:1}, { get: function(o, k) { get.push(k); return o[k]; }});
p[Symbol.unscopables] = p;
with(p) {
typeof foo;
}
return get[0] === Symbol.unscopables && get.slice(1) + '' === "foo";
}
if (!test())
throw new Error("Test failed");