]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/infer-constant-global-property.js
3 Math
= {sin: function() { return 42; }, PI: 43, abs: Math
.abs
};
12 for (var i
= 0; i
< n
; ++i
) {
14 result
+= Math
.sin(Math
.PI
);
16 if (Math
.abs(result
- m
* 42) > 1e-8)
17 throw "Error: bad result: " + result
;