Skip to content
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

Fix broken NewExpressions containing require calls #340

Merged
merged 2 commits into from
Aug 21, 2020

Conversation

rtsao
Copy link
Contributor

@rtsao rtsao commented Aug 21, 2020

Fixes #339 and adds a regression test.

This flag could probably be unset when not strictly necessary, but the extra wrapping parens will at worst be merely redundant.

@rtsao rtsao force-pushed the require-inside-new branch from 10f6838 to e5c3190 Compare August 21, 2020 01:16
@evanw
Copy link
Owner

evanw commented Aug 21, 2020

Thank you for sending a fix for this issue!

@evanw evanw merged commit 4a91308 into evanw:master Aug 21, 2020
evanw added a commit that referenced this pull request Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly compiles require() inside constructor call
2 participants