Fix parse of nested switch statements.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
Ruben Ayrapetyan authored and Evgeny Gavrin committed 2015-06-29 17:42:37 +03:00
1 parent 6e2733dbfd
commit 3d31bfec92
2 files changed
+23 -1

No files matched your search

+22
View File
@@ -73,3 +73,25 @@ switch ("var") {
}
assert (counter === 4);
var flow = '';
switch ("var") {
case "var":
flow += '1';
case "var1":
flow += '2';
case "var2":
flow += '3';
switch (flow) {
case '123':
flow += 'a';
break;
default:
flow += 'b';
}
default:
flow += '4';
}
assert (flow === '123a4');