summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testApplyAtJoinPoint.js
blob: bb7f219abf4e22e0c30ebe2d2a99aa79e3f154bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var isTrue = true;

function g(x) {
    return x;
}

function f() {
    return g.apply(null, isTrue ? ["happy"] : arguments);
}

for (var i = 0; i < 18; ++i)
    assertEq(f("sad"), "happy");