Index: test/mjsunit/harmony/regress/regress-3683.js |
diff --git a/test/mjsunit/harmony/regress/regress-3683.js b/test/mjsunit/harmony/regress/regress-3683.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f7d9731728cc35e5de20518e44496c37a9422066 |
--- /dev/null |
+++ b/test/mjsunit/harmony/regress/regress-3683.js |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 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-scoping |
+ |
+"use strict"; |
+ |
+var count = 0; |
+for (let x = 0; x < 10;) { |
+ x++; |
+ count++; |
+ continue; |
+} |
+assertEquals(10, count); |
+ |
+count = 0; |
+label: for (let x = 0; x < 10;) { |
rossberg
2014/11/14 10:58:01
Can we add additional tests with nested for-let lo
adamk
2014/11/14 19:03:36
Added a variety of tests, and commented each one.
|
+ while (true) { |
+ x++; |
+ count++; |
+ continue label; |
+ } |
+} |
+assertEquals(10, count); |
+ |
+count = 0; |
+for (let x = 0; x < 10;) { |
+ x++; |
+ count++; |
+ { |
+ let x = "hello"; |
+ continue; |
+ } |
+} |
+assertEquals(10, count); |