testWith.js (100B)
1 // basic 'with' functionality 2 3 var o = {foo: true}; 4 with(o) { 5 foo = 10; 6 } 7 assertEq(o.foo, 10);