New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallthrough should not execute case expression #1683
Conversation
Also enable switch statement fuzzing. fixes mishoo#1680
|
Was that a new failure with this PR? |
Nope - just a different bug after re-enabling I'll continue to catch those low hanging fruits, then commit this PR. |
That fuzzer is crazy useful. |
avoid all potential side-effects
When a side effect is found in any |
Unlike previously, we are not eliminating the switch block completely or give up. We drop definitely unreachable cases, de-duplicate others. Only then do we look at the switch block to see if it contains only one case which is definitely reachable. If that's the case, then we ouput an |
Good thing you have a fuzzer. There's a lot things that can potentially go wrong. |
Yup - without that I wouldn't have started #1677 at all. |
Also enable switch statement fuzzing.
fixes #1680