]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/trivially-foldable-reflective-arguments-access.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / trivially-foldable-reflective-arguments-access.js
1 function foo() {
2 return arguments[0];
3 }
4
5 function bar(x) {
6 return foo(x);
7 }
8
9 noInline(bar);
10
11 for (var i = 0; i < 100000; ++i) {
12 var result = bar(42);
13 if (result != 42)
14 throw "Error: bad result: " + result;
15 }