-
Notifications
You must be signed in to change notification settings - Fork 334
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
Optional catch binding support #405
Optional catch binding support #405
Conversation
Sync with escodegen/master
@michaelficarra please check this PR |
@michaelficarra also can you release a new version after the merge, please. |
escodegen.js
Outdated
that.generateExpression(stmt.param, Precedence.Sequence, E_TTT), | ||
')' | ||
]; | ||
if (!stmt.param) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always use a positive condition when there's an alternative branch. Drop the !
and swap the branches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
@michaelficarra fixed |
Thank you. @michaelficarra can you release a new version? |
Ping, i really need this release |
@sanex3339, you come off as quite rude with all those pings. Please be aware that this is a volunteer effort and that things take time. Why don't you publish a fork while you're waiting? |
@michaelficarra please,release a new version with this fix |
@sanex3339 Published version 1.13.0. |
Thank you! |
* Added support for optional-catch binding * Reverted optional catch binding condition
Added optional catch binding support