summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testWith.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testWith.js')
-rw-r--r--js/src/jit-test/tests/basic/testWith.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testWith.js b/js/src/jit-test/tests/basic/testWith.js
new file mode 100644
index 0000000000..ec1a42a847
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testWith.js
@@ -0,0 +1,8 @@
+
+// basic 'with' functionality
+
+var o = {foo: true};
+with(o) {
+ foo = 10;
+}
+assertEq(o.foo, 10);