Index: test/mjsunit/harmony/block-const-assign-sloppy.js |
diff --git a/test/mjsunit/es6/block-const-assign.js b/test/mjsunit/harmony/block-const-assign-sloppy.js |
similarity index 99% |
copy from test/mjsunit/es6/block-const-assign.js |
copy to test/mjsunit/harmony/block-const-assign-sloppy.js |
index f78faa689ddd98a2ae48ae9bc0456b771581ce63..56300a8db106a6ec988190d443626cf2e752ffba 100644 |
--- a/test/mjsunit/es6/block-const-assign.js |
+++ b/test/mjsunit/harmony/block-const-assign-sloppy.js |
@@ -26,13 +26,12 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Flags: --harmony-computed-property-names |
+// Flags: --no-legacy-const --harmony-sloppy |
// Test that we throw early syntax errors in harmony mode |
// when using an immutable binding in an assigment or with |
// prefix/postfix decrement/increment operators. |
-"use strict"; |
- |
const decls = [ |
// Const declaration. |
function(use) { return "const c = 1; " + use + ";" }, TypeError, |