Skip to content

fix(transform-spread): evaluate arguments before checking callee - #18614

Merged
JLHwung merged 3 commits into
7.xfrom
automation/backport-18490
Nov 18, 2026
Merged

JLHwung merged 3 commits into
7.xfrom
automation/backport-18490

Conversation

@babel-bot

Copy link
Copy Markdown
Collaborator

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: package.json

Backport of #18490 to 7.x

Cherry-picked commits:

Conflicts: Resolved.

  • packages/babel-helpers/src/helpers-generated.ts, packages/babel-runtime/package.json, packages/babel-runtime-corejs3/package.json: generated files; took the 7.x version and regenerated via rebuild (adds the callSpread helper). Also changed the helper's @minVersion from the main placeholder 8.2.0 to 7.29.15 (next 7.x patch), dropping the TODO.
  • packages/babel-plugin-transform-regenerator/test/fixtures/misc/real-world/output.js: fixture; took 7.x version, then regenerated (see fix commit).

Fix commits:

Checks: rebuild, lint (pass), full test suite: all pass except 3 suites unrelated to this PR: babel-code-frame/test/color-detection.js and babel-core/test/errors-stacks.js (fail on the clean 7.x branch too, environment related); the regenerator suite now passes.

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 #18490 · copilot · auto · 22.5 AIC · ⌖ 0.72 AIC · ⊞ 9.4K · ◷

@babel-bot babel-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Protected files were modified in this pull request and require manual scrutiny before merge.

Please verify that each protected-file change is intentional, policy-compliant, and safe:

  • Protected files: package.json

@babel-bot babel-bot added the PR: Spec Compliance 👓 A type of pull request used for our changelog categories label Nov 13, 2026
@babel-bot

Copy link
Copy Markdown
Collaborator Author

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 2e48f96

@JLHwung
JLHwung added this pull request to the merge queue Nov 18, 2026
Merged via the queue into 7.x with commit 883e895 Nov 18, 2026
53 checks passed
@JLHwung
JLHwung deleted the automation/backport-18490 branch November 18, 2026 20:36
markharding pushed a commit to futo-org/Harbor that referenced this pull request Nov 24, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@babel/runtime](https://babel.dev/docs/en/next/babel-runtime) ([source](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime)) | [`7.29.14` → `7.29.15`](https://renovatebot.com/diffs/npm/@babel%2fruntime/7.29.14/7.29.15) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fruntime/7.29.15?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fruntime/7.29.14/7.29.15?slim=true) |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/2097) for more information.

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/runtime)</summary>

### [`v7.29.15`](https://github.com/babel/babel/releases/tag/v7.29.15)

[Compare Source](babel/babel@v7.29.14...v7.29.15)

#### v7.29.15 (2026-11-20)

##### 👓 Spec Compliance

- `babel-helpers`, `babel-plugin-transform-optional-chaining`, `babel-plugin-transform-regenerator`, `babel-plugin-transform-spread`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`
  - [#&#8203;18614](babel/babel#18614) fix(transform-spread): evaluate arguments before checking callee ([@&#8203;babel-bot](https://github.com/babel-bot))

##### 🐛 Bug Fix

- `babel-generator`
  - [#&#8203;18675](babel/babel#18675) fix(generator): ensure `minified` generator roundtrip ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-block-scoping`, `babel-plugin-transform-explicit-resource-management`
  - [#&#8203;18674](babel/babel#18674) fix: support using in for lexcial declaration ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-modules-systemjs`, `babel-plugin-transform-regenerator`
  - [#&#8203;18672](babel/babel#18672) fix(modules-systemjs): throw on top level using declaration ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-modules-systemjs`
  - [#&#8203;18671](babel/babel#18671) fix(modules-systemjs): support `export * as ns from` and `export v from` ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-helper-import-to-platform-api`, `babel-plugin-transform-json-modules`
  - [#&#8203;18668](babel/babel#18668) fix(json, text, bytes modules): keep both default and namespace imports ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-duplicate-keys`
  - [#&#8203;18646](babel/babel#18646) fix: do not make `__proto__` setters computed ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-spread`
  - [#&#8203;18664](babel/babel#18664) fix(transform-spread): copy constant array when later elements have side effects ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-helper-wrap-function`, `babel-plugin-transform-async-to-generator`
  - [#&#8203;18667](babel/babel#18667) fix: preserve comments following async function wrappers ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-generator`, `babel-parser`, `babel-types`
  - [#&#8203;18657](babel/babel#18657) fix(generator): add roundtrip test and fix reported bugs ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-parser`
  - [#&#8203;18656](babel/babel#18656) fix(parser): check async arrow conditions for Flow generic async arrows ([@&#8203;babel-bot](https://github.com/babel-bot))
  - [#&#8203;18637](babel/babel#18637) fix: report a redeclared label once in error recovery mode ([#&#8203;18606](babel/babel#18606)) ([@&#8203;JLHwung](https://github.com/JLHwung))
  - [#&#8203;18611](babel/babel#18611) fix: do not keep elided call arguments in error recovery ([@&#8203;babel-bot](https://github.com/babel-bot))
  - [#&#8203;18609](babel/babel#18609) fix: start recovered AssignmentPattern at the property key ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-regenerator`
  - [#&#8203;18650](babel/babel#18650) fix(regenerator): throw on `using` declarations ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-proposal-export-default-from`, `babel-plugin-transform-export-namespace-from`
  - [#&#8203;18645](babel/babel#18645) Keep import attributes whe transforming export namespace ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-computed-properties`
  - [#&#8203;18642](babel/babel#18642) fix(computed-properties): keep object spread elements ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-generator`, `babel-parser`
  - [#&#8203;18635](babel/babel#18635) fix(parser): handle `module` as an identifier after class extends ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-helper-string-parser`, `babel-parser`
  - [#&#8203;18636](babel/babel#18636) fix: don't advance past EOF on an unterminated Unicode code point escape ([@&#8203;JLHwung](https://github.com/JLHwung))
- `babel-plugin-transform-explicit-resource-management`
  - [#&#8203;18631](babel/babel#18631) fix(explicit-resource-management): keep await using in for-of heads ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-for-of`
  - [#&#8203;18616](babel/babel#18616) fix(for-of): also check the names the head reads ([@&#8203;babel-bot](https://github.com/babel-bot))
- `babel-plugin-transform-typescript`
  - [#&#8203;18601](babel/babel#18601) Remove exported TS types named like JavaScript globals ([@&#8203;babel-bot](https://github.com/babel-bot))

##### 🏠 Internal

- `babel-parser`, `babel-traverse`, `babel-types`
  - [#&#8203;18670](babel/babel#18670) improve type checking speed ([@&#8203;babel-bot](https://github.com/babel-bot))

##### Committers: 2

- Babel Bot ([@&#8203;babel-bot](https://github.com/babel-bot))
- Huáng Jùnliàng ([@&#8203;JLHwung](https://github.com/JLHwung))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 9am on tuesday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNTIuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Mi4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.x: backport PR: Spec Compliance 👓 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