Skip to content

Fix _arrayWithHoles bypassing custom Symbol.iterator on array-backed Proxies - #18741

Merged
JLHwung merged 2 commits into
7.xfrom
automation/backport-18186
Nov 26, 2026
Merged

JLHwung merged 2 commits into
7.xfrom
automation/backport-18186

Conversation

@babel-bot

Copy link
Copy Markdown
Collaborator

Backport of #18186 to 7.x

Cherry-picked commits:

  • cfdd804 → Do not bypass custom Symbol.iterator on array-backed Proxies

Conflicts: None.

Fix commit: "Fix formatting and generated corejs2 helpers after backporting #18186" — the cherry-pick failed prettier --check on packages/babel-helpers/src/helpers/iterableToArray.ts and left the regenerated babel-runtime-corejs2 helpers (iterableToArray, toArray, esm + cjs) out of date. Both are fixed.

Checks: build passed; full test suite passed. After the fix, lint passes except check-compat-data, which fails only because the sandbox can't clone compat-table (SSL certificate error). This is unrelated to the backport. The working tree is clean after lint.

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 #18186 · copilot · auto · 14.7 AIC · ⌖ 0.766 AIC · ⊞ 9.4K · ◷

@babel-bot

Copy link
Copy Markdown
Collaborator Author

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 0bdecb2

@JLHwung
JLHwung enabled auto-merge November 26, 2026 15:55
@JLHwung
JLHwung added this pull request to the merge queue Nov 26, 2026
Merged via the queue into 7.x with commit 87564ec Nov 26, 2026
46 checks passed
@JLHwung
JLHwung deleted the automation/backport-18186 branch November 26, 2026 16:14
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.

3 participants