summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/unused-context-in-with.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-11-14 00:52:27 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-11-14 16:34:58 +0100
commit5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1 (patch)
treeab5f510c4d83b175681de629395525bf7ec7cedb /deps/v8/test/mjsunit/unused-context-in-with.js
parent3b3d89bad26f5dfebe73fef6ae284ee78acbd5c9 (diff)
downloadnode-new-5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1.tar.gz
deps: upgrade v8 to 3.30.37
Diffstat (limited to 'deps/v8/test/mjsunit/unused-context-in-with.js')
-rw-r--r--deps/v8/test/mjsunit/unused-context-in-with.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/unused-context-in-with.js b/deps/v8/test/mjsunit/unused-context-in-with.js
new file mode 100644
index 0000000000..2973ca2e5a
--- /dev/null
+++ b/deps/v8/test/mjsunit/unused-context-in-with.js
@@ -0,0 +1,13 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var x = 1;
+function foo(object) {
+ with(object) {
+ x;
+ }
+ return 100;
+}
+
+assertEquals(100,foo("str"));