summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1343513.js
blob: 530f3e70fd83ebea9e827c86e4c466d7cb4d93a4 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| error:RangeError
setJitCompilerOption("ion.warmup.trigger", 50);
setJitCompilerOption("offthread-compilation.enable", 0);
gcPreserveCode();

var i = 0;
do {
    i++;
    var ta = new Int32Array(inIon() ? 0x7fffffff : 1);
} while (!inIon());