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