Skip to content

Commit 704a1b5

Browse files
authored
Update ExecutionVisitor.cs
fix switchStatement
1 parent da36bf6 commit 704a1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Project/Assets/Plugins/Jint/ExecutionVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public void Visit(SwitchStatement statement) {
519519
}
520520
}
521521

522-
if (breakStatement != null) {
522+
if (exit || breakStatement != null) {
523523
breakStatement = null;
524524
break;
525525
}

0 commit comments

Comments
 (0)