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

Unified Diff: test/mjsunit/harmony/block-const-assign-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: Updated tests and comments 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698