blob: 6ce6c5a1ae60277876a240fcd4eb5ad155883d5e [file] [log] [blame]
function test() {
// Function.prototype.bind -> HasOwnProperty -> [[GetOwnProperty]]
var gopd = [];
var p = new Proxy(Function(),
{ getOwnPropertyDescriptor: function(o, v) { gopd.push(v); return Object.getOwnPropertyDescriptor(o, v); }});
p.bind();
return gopd + '' === "length";
}
if (!test())
throw new Error("Test failed");