summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testWith.js
blob: ec1a42a8475c64f40deb497f885c3e7ef7107e7e (plain)
1
2
3
4
5
6
7
8

// basic 'with' functionality

var o = {foo: true};
with(o) {
    foo = 10;
}
assertEq(o.foo, 10);