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