Repository navigation
fix(parser): handle ASI after let followed by a reserved word on the next line - #18432
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Collaborator
Author
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/62629 |
|
commit: |
This was referenced Nov 6, 2026
1 task
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #18409 to 7.x
Cherry-picked commits:
Conflicts: Resolved.
packages/babel-parser/src/parser/statement.ts: conflict inparseExportDeclaration's final return. Kept the 7.x return type (N.Declaration) and added the newexport letbranch from the PR.eslint/babel-eslint-parser/test/typescript-estree.test.js: 7.x wraps the suite in an ESLint 9-onlydescribe(different indentation), so I re-applied the PR's intent by hand: per-testsourceType/jsx/file extension passed to ts-estree, and removed the now-unneeded tsx-mode failure exclusions. 7.x-only entries were kept.Fix commit:
Fix enum fixture output after backporting #18409. The new fixturetypescript/enum/let-with-linebreak/output.jsonwas generated onmain, whereTSEnumDeclarationhas abody(TSEnumBody). On 7.x it usesmembers, so I regenerated it.Checks:
rebuild): passed.make lint-ci check-compat-datafailed for environment reasons (tsc/eslint ran out of memory, no network to clone compat-table,jitimissing). I could not verify lint.babel-code-frame/test/color-detection.jsandbabel-core/test/errors-stacks.js. Both are unrelated to this change and appear to be caused by the environment (color/CI settings).Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
github.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.