blob: d74f3e96d37a483d5cbf36984f91c37357d10246 [file] [log] [blame]
function test() {
// [[Set]] -> [[GetOwnProperty]]
var gopd = [];
var p = new Proxy({},
{ getOwnPropertyDescriptor: function(o, v) { gopd.push(v); return Object.getOwnPropertyDescriptor(o, v); }});
p.foo = 1; p.bar = 1;
return gopd + '' === "foo,bar";
}
if (!test())
throw new Error("Test failed");