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; |