summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1240521.js
blob: 5955705b7a5e2102397211376c0bacf527260abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| allow-oom; skip-if: !('oomAfterAllocations' in this)

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);