summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1827073.js
blob: d87ec97b482308fa5253e9a7157e66254a2a428c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --fast-warmup
let depth = 0;
function f1(a2, a3, a4, a5) {
    f2();
}
function f2() {
    // Recursion depth reduced to allow PBL with debug build (hence larger
    // frames) to work.
    if (depth++ > 75) {
        return;
    }
    f1(1, 2);
    assertEq(JSON.stringify(Array.from(f1.arguments)), "[1,2]");
}
f1(1, 2);