blob: 45e42e044cd4d5362e27bdf1b3efdbc94a15f2ce [file] [log] [blame]
function test() {
var passed = false;
var obj = { foo: true };
var C = function(){};
Object.defineProperty(C, Symbol.hasInstance, {
value: function(inst) { passed = inst.foo; return false; }
});
obj instanceof C;
return passed;
}
if (!test())
throw new Error("Test failed");