diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 00:52:27 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 16:34:58 +0100 |
commit | 5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1 (patch) | |
tree | ab5f510c4d83b175681de629395525bf7ec7cedb /deps/v8/test/mjsunit/unused-context-in-with.js | |
parent | 3b3d89bad26f5dfebe73fef6ae284ee78acbd5c9 (diff) | |
download | node-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.js | 13 |
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")); |