summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/1883837.js
blob: 3fb7ac794496bf33a64cdfa0cfa01f8e153e8eda (plain)
1
2
3
4
5
6
7
8
9
10
let threw = false;
try {
    ({
        a: arguments.length
    } = 0);
} catch (error) {
    assertEq(error instanceof ReferenceError, true);
    threw = true;
}
assertEq(threw, true);