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

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