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

Unified Diff: test/mjsunit/es6/regress/regress-3938.js

Issue 977543002: [es6] Fix for-const loops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « src/parser.cc ('k') | test/mjsunit/harmony/block-const-assign.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/regress/regress-3938.js
diff --git a/test/message/super-in-function.js b/test/mjsunit/es6/regress/regress-3938.js
similarity index 56%
copy from test/message/super-in-function.js
copy to test/mjsunit/es6/regress/regress-3938.js
index edaa0e4eadc7befdb7ed28a3e06eaa827c4388f0..bd7d1befa13b19f2284161f50c4b53ab40c4ee3a 100644
--- a/test/message/super-in-function.js
+++ b/test/mjsunit/es6/regress/regress-3938.js
@@ -1,10 +1,8 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-// Flags: --harmony-classes
+
'use strict';
-function f() {
- super.x();
-}
+assertThrows(function() { for (const i = 0; ; i++) {} }, TypeError);
Dmitry Lomov (no reviews) 2015/03/03 15:13:28 Add a test that does for(const i = 0, j = 5; ...)
+assertThrows("'use strict'; for (const i = 0; ; i++) {}", TypeError);
« no previous file with comments | « src/parser.cc ('k') | test/mjsunit/harmony/block-const-assign.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698