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

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 function testMoreClosures() {
     2     var f = {}, max = 3;
     4     var hello = function(n) {
     5         function howdy() { return n * n }
     6         f.test = howdy;
     7     };
     9     for (var i = 0; i <= max; i++)
    10         hello(i);
    12     return f.test();
    13 }
    14 assertEq(testMoreClosures(), 9);

mercurial