Update ReadMe.md
[qtwebkit.git] / JSTests / microbenchmarks / to-number-constructor-only-number.js
blob04a945bb9f54e5b7723f44140132dca3b8fb1082
1 function test(value)
3 return Number(value);
6 var result = 0;
7 for (var i = 0; i < 1e4; ++i)
8 result = test(i);
9 if (result !== 9999)
10 throw new Error(`bad result ${result}`);