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