Update ReadMe.md
[qtwebkit.git] / JSTests / microbenchmarks / direct-construct.js
blobe4268616529e351c6f79e3977b603b05327b94b6
1 function Foo()
3 this.f = 42;
6 function bar()
8 return new Foo();
11 noInline(Foo);
12 noInline(bar);
14 (function() {
15 for (var i = 0; i < 10000000; ++i) {
16 var result = bar();
17 if (result.f != 42)
18 throw "Error: bad result: " + result;
20 })();