michael@0: actual = ''; michael@0: expected = '0,1,2,0,1,2,'; michael@0: michael@0: for (var a = 0; a < 2; ++a) { michael@0: for (var b = 0; b < 3; ++b) { michael@0: (function (x) { michael@0: (function () { michael@0: for (var c = 0; c < 1; ++c) { michael@0: appendToActual(x); michael@0: } michael@0: })(); michael@0: })(b); michael@0: } michael@0: } michael@0: michael@0: michael@0: assertEq(actual, expected)