]> git.saurik.com Git - apple/javascriptcore.git/blame - 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
CommitLineData
81345200
A
1function foo(o, a, b, c, d, e, f, g, h, i, j) {
2 return o.f;
3}
4
5function bar(o) {
6 return foo(o);
7}
8
9noInline(foo);
10noInline(bar);
11
12for (var i = 0; i < 100000; ++i)
13 bar({f:42});
14
15var result = bar({g:24, f:43});
16if (result != 43)
17 throw "Error: bad result: " + result;
18