JSC should have InstanceOf inline caching
[WebKit-https.git] / JSTests / microbenchmarks / instanceof-always-hit-one.js
1 (function() {
2     class Foo { }
3     var foo = new Foo();
4     
5     for (var i = 0; i < 5000000; ++i) {
6         if (!(foo instanceof Foo))
7             throw "Error: bad result";
8     }
9 })();