michael@0: var res; michael@0: var x = 0; michael@0: michael@0: function f() { michael@0: x = {x: 1, f: function() { res = this.x; }}; michael@0: with(x) { michael@0: g = function() { michael@0: eval(""); michael@0: f(); michael@0: } michael@0: g(); michael@0: } michael@0: } michael@0: f(); michael@0: assertEq(res, 1);