]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/get-my-argument-by-val-out-of-bounds.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / get-my-argument-by-val-out-of-bounds.js
CommitLineData
ed1e77d3
A
1function foo(index) {
2 return arguments[index];
3}
4
5noInline(foo);
6
7for (var i = 0; i < 100000; ++i) {
8 var result = foo(1, 42);
9 if (result != 42)
10 throw "Error: bad result in loop: " + result;
11}
12
13var result = foo(1);
14if (result !== void 0)
15 throw "Error: bad result at end: " + result;