summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/break-2.js
blob: 4eea55bface23b54249220d417754d1868a757d6 (plain)
1
2
3
4
5
6
7
8
9
10
// A break statement leaves only a single for-of loop.

var log = '';
for (var x of [1, 2, 3]) {
    for (var y of ['.', ':']) {
        log += x + y;
        break;
    }
}
assertEq(log, "1.2.3.");