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

Side by Side Diff: test/mjsunit/harmony/block-conflicts-sloppy.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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 // Test for conflicting variable bindings. 5 // Test for conflicting variable bindings.
6 6
7 // Flags: --no-legacy-const --harmony-sloppy --harmony-sloppy-let --harmony-slop py-function 7 // Flags: --harmony-sloppy --harmony-sloppy-let --harmony-sloppy-function
8 8
9 function CheckException(e) { 9 function CheckException(e) {
10 var string = e.toString(); 10 var string = e.toString();
11 assertTrue(string.indexOf("has already been declared") >= 0 || 11 assertTrue(string.indexOf("has already been declared") >= 0 ||
12 string.indexOf("redeclaration") >= 0); 12 string.indexOf("redeclaration") >= 0);
13 return 'Conflict'; 13 return 'Conflict';
14 } 14 }
15 15
16 16
17 function TestGlobal(s,e) { 17 function TestGlobal(s,e) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Test conflicting parameter/var bindings. 170 // Test conflicting parameter/var bindings.
171 for (var v = 0; v < varbinds.length; ++v) { 171 for (var v = 0; v < varbinds.length; ++v) {
172 TestNoConflict('(function (x) {' + varbinds[v] + '})();'); 172 TestNoConflict('(function (x) {' + varbinds[v] + '})();');
173 } 173 }
174 174
175 // Test conflicting catch/function bindings. 175 // Test conflicting catch/function bindings.
176 TestNoConflict('try {} catch(x) {' + funbind + '}'); 176 TestNoConflict('try {} catch(x) {' + funbind + '}');
177 177
178 // Test conflicting parameter/function bindings. 178 // Test conflicting parameter/function bindings.
179 TestNoConflict('(function (x) {' + funbind + '})();'); 179 TestNoConflict('(function (x) {' + funbind + '})();');
OLDNEW
« no previous file with comments | « test/mjsunit/global-const-var-conflicts.js ('k') | test/mjsunit/harmony/block-const-assign-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698