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