michael@0: actual = ''; michael@0: expected = '0,0,1,1,2,2,3,3,'; michael@0: michael@0: let(f = function() { michael@0: for (let x = 0; x < 4; ++x) { michael@0: (function() { michael@0: for (let y = 0; y < 2; ++y) { michael@0: appendToActual(x); michael@0: } michael@0: })() michael@0: } michael@0: }) { michael@0: f(0) michael@0: } michael@0: michael@0: michael@0: assertEq(actual, expected)