michael@0: function f() { michael@0: eval("g=function() { \ michael@0: for (let x=0; x < 2; ++x) { \ michael@0: d=x \ michael@0: } \ michael@0: }") michael@0: g(); michael@0: eval("var d") michael@0: g(); michael@0: } michael@0: michael@0: f(); michael@0: assertEq(d, 1);