summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1240521.js
blob: 20aab0a03c119853927d7bd36d3d97a191a30388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| allow-oom

if (!('oomAfterAllocations' in this))
    quit();

var egc = 138;
function SwitchTest(value) {
    switch (value) {
        case 0:
            break
        case new Number:
            result = 8
        case oomAfterAllocations(egc):
    }
}
!(SwitchTest(4) === 4);
!(SwitchTest(true) === 2);