js/src/jit-test/tests/basic/testApplyAtJoinPoint.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:8ed91a5559ba
1 var isTrue = true;
2
3 function g(x) {
4 return x;
5 }
6
7 function f() {
8 return g.apply(null, isTrue ? ["happy"] : arguments);
9 }
10
11 for (var i = 0; i < 18; ++i)
12 assertEq(f("sad"), "happy");

mercurial