]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/exit-from-ftl-with-arity-check-fail.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / exit-from-ftl-with-arity-check-fail.js
1 function foo(o, a, b, c, d, e, f, g, h, i, j) {
2 return o.f;
3 }
4
5 function bar(o) {
6 return foo(o);
7 }
8
9 noInline(foo);
10 noInline(bar);
11
12 for (var i = 0; i < 100000; ++i)
13 bar({f:42});
14
15 var result = bar({g:24, f:43});
16 if (result != 43)
17 throw "Error: bad result: " + result;
18