Skip to content

Commit e69120c

Browse files
authored
Merge pull request #2 from vandermond/patch-1
Update ExecutionVisitor.cs
2 parents da36bf6 + 704a1b5 commit e69120c

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)