]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/fiat-double-to-int52-then-fold.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / fiat-double-to-int52-then-fold.js
1 function foo() {
2 return fiatInt52(Math.fround(42)) + 1;
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 1000000; ++i) {
8 var result = foo();
9 if (result != 42 + 1)
10 throw "Error: bad result: " + result;
11 }