summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1892699-1.js
blob: 9804f26a130b5655eafb63bf239c26d6d1d86528 (plain)
1
2
3
4
5
6
7
8
9
10
function* a(x, y, z) {
    if (arguments.length !== 3) {
        throw "Wrong output";
    }
    yield x;
    yield y;
    yield z;
}
const x = a(3, 4, 5);
x.next();