michael@0: michael@0: // basic 'with' functionality michael@0: michael@0: var o = {foo: true}; michael@0: with(o) { michael@0: foo = 10; michael@0: } michael@0: assertEq(o.foo, 10);