michael@0: var s, x = 0; michael@0: michael@0: s = ''; michael@0: for (let x = x; x < 3; x++) michael@0: s += x; michael@0: assertEq(s, '012'); michael@0: michael@0: s = ''; michael@0: for (let x = eval('x'); x < 3; x++) michael@0: s += x; michael@0: assertEq(s, '012'); michael@0: michael@0: s = '' michael@0: for (let x = function () { with ({}) return x; }(); x < 3; x++) michael@0: s += x; michael@0: assertEq(s, '012');