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

Side by Side Diff: test/mjsunit/harmony/block-conflicts-sloppy.js

Issue 1219853004: [es6] Initial support for let/const bindings in sloppy mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git rebase Created 5 years, 5 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 "use strict"; 7 "use strict";
8 8
9 function CheckException(e) { 9 function CheckException(e) {
10 var string = e.toString(); 10 var string = e.toString();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Test conflicting parameter/var bindings. 156 // Test conflicting parameter/var bindings.
157 for (var v = 0; v < varbinds.length; ++v) { 157 for (var v = 0; v < varbinds.length; ++v) {
158 TestNoConflict('(function (x) {' + varbinds[v] + '})();'); 158 TestNoConflict('(function (x) {' + varbinds[v] + '})();');
159 } 159 }
160 160
161 // Test conflicting catch/function bindings. 161 // Test conflicting catch/function bindings.
162 TestNoConflict('try {} catch(x) {' + funbind + '}'); 162 TestNoConflict('try {} catch(x) {' + funbind + '}');
163 163
164 // Test conflicting parameter/function bindings. 164 // Test conflicting parameter/function bindings.
165 TestNoConflict('(function (x) {' + funbind + '})();'); 165 TestNoConflict('(function (x) {' + funbind + '})();');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698