]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/assign-argument-in-inlined-call.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / assign-argument-in-inlined-call.js
CommitLineData
81345200
A
1function f1(a) {
2 return a[0];
3}
4
5function getF2Arguments() {
6 return f2.arguments;
7}
8
9noInline(getF2Arguments);
10
11function f2(a) {
12 a = f1(getF2Arguments());
13 return a;
14}
15
16function f3(a) {
17 return f2(a);
18}
19
20noInline(f3);
21
22for (var i = 0; i < 10000; ++i) {
23 var result = f3(42);
24 if (result != 42)
25 throw "Error: bad result: " + result;
26}
27