summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1295031.js
blob: b8afb380253b8ad7e1e9d53f202bf5732f52cdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// |jit-test| --ion-warmup-threshold=50
setJitCompilerOption("offthread-compilation.enable", 0);
gcPreserveCode();

try {
    while (true) {
        a = inIon() ? 0 : 300;
        try {
            buf = new Uint8ClampedArray(a);
            assertEq(buf.length, 300);
        } catch (e) {
            assertEqa;
        }
    }
} catch(exc1) {}
loadFile()
function loadFile() {
    try {
        switch (lfRunTypeId) {
          case 1:
            eval();
        }
    } catch (lfVare) {}
}