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

Unified Diff: test/mjsunit/es6/block-eval-var-over-legacy-const.js

Issue 1571873004: Ship ES2015 sloppy-mode const semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Associate with --harmony-shipping Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/declare-locally.js ('k') | test/mjsunit/es6/block-let-contextual-sloppy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/block-eval-var-over-legacy-const.js
diff --git a/test/mjsunit/es6/block-eval-var-over-legacy-const.js b/test/mjsunit/es6/block-eval-var-over-legacy-const.js
index fc4d22fead4027f5e15390c24c01d314d54bec6e..be1687b5e967d848b4009f7d925975cec9a319cc 100644
--- a/test/mjsunit/es6/block-eval-var-over-legacy-const.js
+++ b/test/mjsunit/es6/block-eval-var-over-legacy-const.js
@@ -3,8 +3,10 @@
// found in the LICENSE file.
// Flags: --harmony-sloppy --harmony-sloppy-let --harmony-sloppy-function
+// Flags: --legacy-const
-// Var-let conflict in a function throws, even if the var is in an eval
+// Legacy-const-let conflict in a function throws, even if the legacy const
+// is in an eval
// Throws at the top level of a function
assertThrows(function() {
@@ -56,7 +58,7 @@ try {
}
assertFalse(caught);
-// var across with doesn't conflict
+// legacy const across with doesn't conflict
caught = false;
try {
(function() {
@@ -69,7 +71,7 @@ try {
}
assertFalse(caught);
-// var can still conflict with let across a with
+// legacy const can still conflict with let across a with
caught = false;
try {
(function() {
« no previous file with comments | « test/mjsunit/declare-locally.js ('k') | test/mjsunit/es6/block-let-contextual-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698