Skip to content

Commit c0b335b

Browse files
committed
test for bug 428
1 parent 585fee4 commit c0b335b

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/test_break_in_function.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// https://github.com/espruino/Espruino/issues/428
2+
3+
function broken() {
4+
switch(1) {
5+
case 1: working();
6+
break;
7+
}
8+
}
9+
10+
function working() {
11+
for(var i=0;i<10;i++){
12+
if (i>5) {
13+
console.log("Hello");
14+
break;
15+
}
16+
}
17+
console.log("World");
18+
result = 1;
19+
}
20+
21+
22+
broken();

0 commit comments

Comments
 (0)