summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug1532289.js
blob: 131867c4158ace096cd7c1cc318adc747d27921b (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| --ion-warmup-threshold=0; --ion-offthread-compile=off; skip-if: !getJitCompilerOptions()['baseline.enable']

// gczeal mode causes test to run too slowly with --no-baseline
gczeal(4,40);

var x;
var y = false;

function f(v) { x = v; while (y) {} }

for (var z=1; z < 1e5; z++) { f(BigInt(z)); }