michael@0: actual = ''; michael@0: expected = ''; michael@0: michael@0: (function () { michael@0: var y; michael@0: (eval("(function () {\ michael@0: for (var x = 0; x < 3; ++x) {\ michael@0: ''.replace(/a/, (y = 3))\ michael@0: }\ michael@0: });\ michael@0: "))() michael@0: })() michael@0: michael@0: michael@0: michael@0: assertEq(actual, expected)