js/src/jit-test/tests/basic/testThinLoopDemote.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 function testThinLoopDemote() {
     2     function f()
     3     {
     4         var k = 1;
     5         for (var n = 0; n < 4; n++) {
     6             k = (k * 10);
     7         }
     8         return k;
     9     }
    10     f();
    11     return f();
    12 }
    13 assertEq(testThinLoopDemote(), 10000);

mercurial