blob: f5f873197ff13c3feb0283aeec8dcf17bbc9b055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// A labeled break statement can leave multiple for-loops
var log = '';
for (var i = 0; i < 3; i++) {
a: for (var x of [1, 2, 3]) {
for (var y of ['.', ':']) {
log += x + y;
break a;
}
}
}
assertEq(log, "1.1.1.");
|