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

Unified Diff: test/mjsunit/es6/block-let-contextual-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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/es6/block-eval-var-over-legacy-const.js ('k') | test/mjsunit/es6/completion.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/block-let-contextual-sloppy.js
diff --git a/test/mjsunit/es6/block-let-contextual-sloppy.js b/test/mjsunit/es6/block-let-contextual-sloppy.js
index 778e7be04f429887d4351a8bdbb8917698592871..ac7bca107eeec96fc2973a09cb563973c14d9d22 100644
--- a/test/mjsunit/es6/block-let-contextual-sloppy.js
+++ b/test/mjsunit/es6/block-let-contextual-sloppy.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-sloppy --harmony-sloppy-let --legacy-const
+// Flags: --harmony-sloppy --harmony-sloppy-let
-// let is usable as a variable with var or legacy const, not let or ES6 const
+// let is usable as a variable with var, but not let or ES6 const
(function (){
assertEquals(undefined, let);
@@ -49,13 +49,6 @@ assertThrows(function() { return let; }, ReferenceError);
assertEquals(1, obj.x);
})();
-(function () {
- let obj = {};
- const [let] = [function() { return obj; }];
- let().x = 1;
- assertEquals(1, obj.x);
-})();
-
(function() {
function let() {
return 1;
« no previous file with comments | « test/mjsunit/es6/block-eval-var-over-legacy-const.js ('k') | test/mjsunit/es6/completion.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698