Skip to content

fix(replace-supers): keep the receiver of super tagged templates - #18703

Merged
JLHwung merged 1 commit into
7.xfrom
automation/backport-18676
Nov 24, 2026
Merged

JLHwung merged 1 commit into
7.xfrom
automation/backport-18676

Conversation

@babel-bot

Copy link
Copy Markdown
Collaborator

Backport of #18676 to 7.x

Cherry-picked commits:

Conflicts: Resolved.

  • packages/babel-helper-replace-supers/src/index.ts: on main the options passed to memberExpressionToFunctions were refactored (this.file, this.getObjectRef.bind(this), etc.), while 7.x builds them inline from opts. I kept the 7.x code and applied only the intended change: boundGet now returns this.get(superMember).bind(this).

Checks: rebuild passed. lint and test ran, with failures unrelated to this change:

  • lint: check-compat-data fails with git exit 128 (environment/network); TS errors in packages/babel-types/scripts/generators/* (unused @ts-expect-error/typings), not touched by this PR.
  • test: 1 suite fails (packages/babel-code-frame/test/color-detection.js, 6 tests), unrelated. All other 277 suites pass, including the new fixtures.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 🔙 Backport to 7.x for #18676 · copilot · auto · 16.8 AIC · ⌖ 0.632 AIC · ⊞ 9.4K · ◷

@babel-bot babel-bot added 7.x: backport PR: Bug Fix 🐛 A type of pull request used for our changelog categories labels Nov 23, 2026
@babel-bot

babel-bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

commit: df62b0c

@JLHwung

JLHwung commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The failing nextjs 10 test will be fixed on #18701.

@JLHwung
JLHwung force-pushed the automation/backport-18676 branch from b30de39 to df62b0c Compare November 23, 2026 20:49
@JLHwung
JLHwung added this pull request to the merge queue Nov 24, 2026
Merged via the queue into 7.x with commit cd713db Nov 24, 2026
45 checks passed
@JLHwung
JLHwung deleted the automation/backport-18676 branch November 24, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.x: backport PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants