]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/cloned-arguments-get-by-val-double-array.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / cloned-arguments-get-by-val-double-array.js
1 function foo() {
2 "use strict";
3 return arguments[0] + 1.5;
4 }
5
6 noInline(foo);
7
8 for (var i = 0; i < 10000; ++i) {
9 var result = foo(4.2);
10 if (result != 5.7)
11 throw "Error: bad result: " + result;
12 }
13