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

Recover from exported using declaration #16407

Merged
merged 1 commit into from Apr 4, 2024

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Apr 3, 2024

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR the parser now recovers from the invalid export using x = ... production, as I assume it might be a common scenario when people try to export a using declaration as if it were a normal constant variable.

@JLHwung JLHwung added PR: Polish 💅 A type of pull request used for our changelog categories area: errors labels Apr 3, 2024
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56658

@nicolo-ribaudo nicolo-ribaudo changed the title Recover from exported using declaration Recover from exported using declaration Apr 4, 2024
@nicolo-ribaudo nicolo-ribaudo merged commit 2838c13 into babel:main Apr 4, 2024
49 of 51 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the recover-export-using branch April 4, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: errors pkg: parser PR: Polish 💅 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants