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

no-empty incorrectly flags try/catch/finally bodies #514

michaelficarra opened this Issue Jan 14, 2014 · 0 comments


None yet
1 participant

michaelficarra commented Jan 14, 2014

In order to have an empty body in any of these, the syntactically required braces will parse as an empty block. Unlike if, while, for, etc., the "block" cannot be replaced with an EmptyStatement. We might want to consider only allowing empty catch bodies, since empty try/finally seem to be useless/confusing. This might be more in the spirit of the documentation.

@nzakas nzakas closed this in 7372289 Jan 16, 2014

@eslint eslint bot locked and limited conversation to collaborators Feb 7, 2018

@eslint eslint bot added the archived due to age label Feb 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.