summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1655940-1.js
blob: 34880823cc1d1b6b603e179f2c1d1f5735dd1aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function f(t) {
    for (var i = 0; i < 2; i++) {
        try {
            var x = 1;
            new Int32Array(1);
            x = 2;
            new Int32Array(t);
        } catch (e) {
            assertEq(x, 2);
        }
    }
}
f(1);
f(-1);