summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1302682.js
blob: 0a33c42972d8d1d82f7f63689e33be20204d8280 (plain)
1
2
3
4
5
6
7
8
9
10
setJitCompilerOption("ion.warmup.trigger", 50);
setJitCompilerOption("offthread-compilation.enable", 0);
gcPreserveCode();

for (var i = 0; i < 30000; i++) {
    var a = inIon() ? 7 : 300;
    var buf = new Uint8ClampedArray(a);
    (function() {}) * this;
    try {} catch (e) {}
}