michael@0: actual = ''; michael@0: expected = '77,77,'; michael@0: michael@0: var o = { michael@0: x: 11, michael@0: y: 13 michael@0: }; michael@0: michael@0: function g() { michael@0: with (o) { michael@0: var x = 77; michael@0: for (var i = 0; i < 5; ++i) { michael@0: var f = function() { appendToActual(x); } michael@0: } michael@0: f(); michael@0: } michael@0: michael@0: f(); michael@0: } michael@0: michael@0: g(); michael@0: michael@0: michael@0: assertEq(actual, expected)