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