summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1284491.js
blob: f04653a18afe0025408747f62719789782b4e742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (!('oomTest' in this))
    quit();

loadFile(`
  function SwitchTest(){
    switch(value) {
      case 0:break
      case isNaN: break
    }
  }
  SwitchTest();
`)
function loadFile(lfVarx) {
  oomTest(function() eval(lfVarx))
}