Source code
Revision control
Copy as Markdown
Other Tools
// basic 'with' functionality
var o = {foo: true};
with(o) {
foo = 10;
}
assertEq(o.foo, 10);
// basic 'with' functionality
var o = {foo: true};
with(o) {
foo = 10;
}
assertEq(o.foo, 10);