js/src/jit-test/tests/closures/t012.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 actual = '';
     2 expected = '0,1,2,3,4,';
     4 function g(a) {
     5   a();
     6 }
     8 function f(y) {
     9   var q;
    10   q = function() { appendToActual(y); };
    11   g(q);
    12 }
    14 for (var i = 0; i < 5; ++i) {
    15   f(i);
    16  }
    19 assertEq(actual, expected)

mercurial