BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / well-known_symbols_Symbol.hasInstance.js
1 function test() {
2
3 var passed = false;
4 var obj = { foo: true };
5 var C = function(){};
6 Object.defineProperty(C, Symbol.hasInstance, {
7   value: function(inst) { passed = inst.foo; return false; }
8 });
9 obj instanceof C;
10 return passed;
11       
12 }
13
14 if (!test())
15     throw new Error("Test failed");
16