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

Side by Side Diff: test/mjsunit/regress/regress-4693.js

Issue 1819123002: Remove support for legacy const, part 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, deleted one more file Created 4 years, 9 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
« no previous file with comments | « test/mjsunit/regress/regress-4576.js ('k') | test/mjsunit/regress/regress-641.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Flags: --harmony-sloppy-function --nolegacy-const 5 // Flags: --harmony-sloppy-function
6 6
7 // In sloppy mode we allow function redeclarations within blocks for webcompat. 7 // In sloppy mode we allow function redeclarations within blocks for webcompat.
8 (function() { 8 (function() {
9 assertEquals(undefined, f); // Annex B 9 assertEquals(undefined, f); // Annex B
10 if (true) { 10 if (true) {
11 assertEquals(2, f()); 11 assertEquals(2, f());
12 function f() { return 1 } 12 function f() { return 1 }
13 assertEquals(2, f()); 13 assertEquals(2, f());
14 function f() { return 2 } 14 function f() { return 2 }
15 assertEquals(2, f()); 15 assertEquals(2, f());
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 assertEquals(undefined, f); // Annex B 71 assertEquals(undefined, f); // Annex B
72 if (true) { 72 if (true) {
73 assertEquals(undefined, f); 73 assertEquals(undefined, f);
74 { function f() { return 1 } } 74 { function f() { return 1 } }
75 assertEquals(1, f()); 75 assertEquals(1, f());
76 { function f() { return 2 } } 76 { function f() { return 2 } }
77 assertEquals(2, f()); 77 assertEquals(2, f());
78 } 78 }
79 assertEquals(2, f()); // Annex B 79 assertEquals(2, f()); // Annex B
80 })(); 80 })();
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-4576.js ('k') | test/mjsunit/regress/regress-641.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698