summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDoubleComparison.js
blob: 1d4b3e33a58828f9bc1a2533e5435219d132a908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function testDoubleComparison()
{
  for (var i = 0; i < 500000; ++i)
  {
    switch (1 / 0)
    {
      case Infinity:
    }
  }

  return "finished";
}
assertEq(testDoubleComparison(), "finished");