blob: 0846a63c3615374cabb301d80657454df65d1674 [file] [log] [blame]
function test() {
// Object.defineProperties -> Get -> [[Get]]
var get = [];
var p = new Proxy({foo:{}, bar:{}}, { get: function(o, k) { get.push(k); return o[k]; }});
Object.defineProperties({}, p);
return get + '' === "foo,bar";
}
if (!test())
throw new Error("Test failed");