Skip to content

Commit c3c9e51

Browse files
Added failing test.
1 parent 16f69da commit c3c9e51

File tree

1 file changed

+12
-0
lines changed
  • tests/cases/conformance/es6/for-ofStatements

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//@target: ES5
2+
3+
var array = [1,2,3];
4+
var sum = 0;
5+
6+
for (let num of array) {
7+
if (sum === 0) {
8+
array = [4,5,6]
9+
}
10+
11+
sum += num;
12+
}

0 commit comments

Comments
 (0)