summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1892699.js
blob: d01ab67b1e9c42301bb1a909e2457c6564576d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
async function a(x, y, z) {
    if (arguments.length !== 3) {
        throw "Wrong output";
    }
    await x;
    if (arguments.length !== 3) {
        throw "Wrong output";
    }
    await y;
    if (arguments.length !== 3) {
        throw "Wrong output";
    }
    await z;
}
const p = a(3, 4, 5);
p.then(() => { assertEq(true, true) })