-
-
Couldn't load subscription status.
- Fork 223
fix!: remove ecmaFeatures.globalReturn
#692
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
base: main
Are you sure you want to change the base?
Conversation
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. Pending approval to commence integration of the breaking changes.
|
There's a merge conflict now. |
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, thanks!
Prerequisites checklist
What is the purpose of this pull request?
Removed
ecmaFeatures.globalReturn. Top-level return is determined bysourceType: "commonjs". SpecifyingglobalReturnnow throws.What changes did you make? (Give an overview)
globalReturnfrom the documented parser options and internal feature set.globalReturnis specified.globalReturnand added a unit test asserting the error behavior.Related Issues
Fixes #525
Is there anything you'd like reviewers to focus on?