blob: d5b7cfb875352c3a16a57d9728082df0ae83b2ab [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
class Foo { }
var foo = new Foo();
class Bar { }
var bar = new Bar();
for (var i = 0; i < 5000000; ++i) {
var o;
if (i & 1)
o = foo;
else
o = bar;
if ((o instanceof Foo) != !!(i & 1))
throw "Error: bad result at i = " + i;
}
})();