]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/simplify-varargs-mandatory-minimum-smaller-than-limit.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / simplify-varargs-mandatory-minimum-smaller-than-limit.js
CommitLineData
ed1e77d3
A
1function foo() { return 42; }
2
3function bar() { return foo.apply(this, arguments); }
4
5function baz() { return bar(1, 2, 3); }
6
7noInline(baz);
8
9for (var i = 0; i < 10000; ++i) {
10 var result = baz();
11 if (result != 42)
12 throw "Error: bad result: " + result;
13}
14
15