js/src/jit-test/tests/closures/t035.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 actual = '';
     2 expected = '4,';
     4 function k(f_arg) { 
     5   for (var i = 0; i < 5; ++i) {
     6     f_arg(i);
     7   }
     8 }
    10 function t(x) {
    11   k(function (i) { x = i; });
    12   appendToActual(x);
    13 }
    15 t(1);
    18 assertEq(actual, expected)

mercurial