Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: test/mjsunit/harmony/default-parameter-do-expression.js

Issue 2272083003: Merge DeclarationScope::temps_ and Scope::ordered_variables_ into Scope::locals_ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes + add cornercase test + still failing cornercase test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --harmony-do-expressions --nolazy
6
7 function hoist_unique_do_var() {
8 var f = (y = do { var unique = 3 }) => unique;
9 assertEquals(3, f());
10 assertThrows(() => unique, ReferenceError);
11 }
12 hoist_unique_do_var();
13
14 function hoist_duplicate_do_var() {
15 var duplicate = 100;
16 var f = (y = do { var duplicate = 3 }) => duplicate;
17 assertEquals(3, f());
18 // TODO(verwaest): The {duplicate} declarations were invalidly merged.
19 assertEquals(3, duplicate);
20 }
21 hoist_duplicate_do_var();
OLDNEW
« src/ast/scopes.cc ('K') | « test/cctest/interpreter/bytecode_expectations/Switch.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698