summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1574415.js
blob: 81c61c41da8fa496a8c8e98b982d756002ea99e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
var err = 0;

for (let x of [0, Object.create(null)]) {
    try {
        (new Int8Array)[1] = x;
    } catch (e) {
        err += 1;
    }
}

assertEq(err, 1);