Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testDoubleComparison.js
1 function testDoubleComparison()
2 {
3   for (var i = 0; i < 500000; ++i)
4   {
5     switch (1 / 0)
6     {
7       case Infinity:
8     }
9   }
10
11   return "finished";
12 }
13 assertEq(testDoubleComparison(), "finished");
14 checkStats({
15   sideExitIntoInterpreter: 1
16 });