Repository navigation
Make getFunctionParent skip decorators/keys - #18715
Merged
Merged
Conversation
backport of 9386c66
JLHwung
enabled auto-merge
November 24, 2026 19:31
Collaborator
Author
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/63783 |
Assisted-by: Claude Opus 5.5
|
commit: |
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 #18633 to 7.x
Cherry-picked commits:
getFunctionParentskip decorators/keysConflicts: Resolved.
packages/babel-traverse/src/path/ancestry.ts: thegetFunctionParentsignature differs onmain(this: NodePath<t.Node | null>) versus 7.x (this: NodePath). I took the new implementation and kept the 7.xthis: NodePathsignature.Checks: Rebuild passed. The full Jest suite had 6 failures, all in
packages/babel-code-frame/test/color-detection.js(terminal color detection in the environment), unrelated to this change. Lint failed, but not because of this change:check-compat-datafailed with a git error (exit 128), and there were 2 unused-eslint-disable warnings inbabel-corefiles this PR doesn't touch. The tsc and type tests passed, includingbabel-traverse/test/index.tst.ts.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.