blob: f3bf75aa4bf0da85cf2d3b262318d411194ebc2f [file] [log] [blame]
function test() {
// InstanceofOperator -> GetMethod -> GetV -> [[Get]]
// InstanceofOperator -> OrdinaryHasInstance -> Get -> [[Get]]
var get = [];
var p = new Proxy(Function(), { get: function(o, k) { get.push(k); return o[k]; }});
({}) instanceof p;
return get[0] === Symbol.hasInstance && get.slice(1) + '' === "prototype";
}
if (!test())
throw new Error("Test failed");