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