blob: d74d0b502fb860d4bac76fcede4b5edfa750efd1 [file] [log] [blame]
keith_miller@apple.com4f352802016-08-04 21:11:16 +00001function Constructor(x) {}
2
3Object.defineProperty(Constructor, Symbol.hasInstance, {value: function() { return false; }});
4
5x = new Constructor();
6
7function body() {
8 var result = 0;
9 for (var i = 0; i < 100000; i++) {
10 if (x instanceof Constructor)
11 result++;
12 }
13
14 return result;
15}
16noInline(body);
17
18if (body())
19 throw "result incorrect";