Skip to content

Recover from exported using declaration#16407

Merged
nicolo-ribaudo merged 1 commit intobabel:mainfrom
JLHwung:recover-export-using
Apr 4, 2024
Merged

Recover from exported using declaration#16407
nicolo-ribaudo merged 1 commit intobabel:mainfrom
JLHwung:recover-export-using

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
@nicolo-ribaudo nicolo-ribaudo deleted the recover-export-using branch April 4, 2024 14:07
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: errors outdated A closed issue/PR that is archived due to age. Recommended to make a new issue 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.

4 participants