michael@0: actual = ''; michael@0: expected = 'undefined,'; michael@0: michael@0: function f() { michael@0: (eval("\ michael@0: (function () {\ michael@0: for (var z = 0; z < 2; ++z) {\ michael@0: x = ''\ michael@0: }\ michael@0: })\ michael@0: "))(); michael@0: } michael@0: this.__defineSetter__("x", eval) michael@0: f() michael@0: appendToActual(x); michael@0: michael@0: michael@0: assertEq(actual, expected)