Fixed switch treating continue like break.

This commit is contained in:
TomyLobo 2011-12-05 03:21:17 +01:00
parent daf1dde701
commit 09589e2a79

View File

@ -80,6 +80,8 @@ public class Switch extends Node implements RValue {
return defaultCase == null ? ret : defaultCase.getValue();
} catch (BreakException e) {
if (e.doContinue) throw e;
return 0.0;
}
}