Repository navigation
Guard @@toPrimitive usage in toPrimitive helper - #18287
Merged
Merged
Conversation
Collaborator
Author
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/62312 |
|
commit: |
nicolo-ribaudo
marked this pull request as draft
October 5, 2026 16:52
Regenerate 7.x-only fixtures embedding the toPrimitive helper.
nicolo-ribaudo
force-pushed
the
automation/backport-18284
branch
from
October 6, 2026 12:33
84187ef to
a70e837
Compare
nicolo-ribaudo
marked this pull request as ready for review
October 6, 2026 12:50
This was referenced Oct 16, 2026
This was referenced Oct 25, 2026
This was referenced Oct 30, 2026
1 task
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 #18284 to 7.x
Cherry-picked commits:
@@toPrimitiveusage in toPrimitive helperConflicts: None.
Fix commit: "Update fixtures after backporting #18284" regenerates fixtures that exist only on 7.x and embed the toPrimitive helper (
babel-plugin-transform-runtimeno-helpersfixtures for runtime, runtime-corejs2 and runtime-corejs3, andbabel-preset-envcorejs2-babel-7/usage-shippedProposals).Checks: Rebuilt, then ran the full test suite. Only
babel-code-frame/test/color-detection.jsandbabel-core/test/errors-stacks.jsfail. They look environment-related and do not touch the helper, but I did not check them on7.x. Lint fails incheck-compat-databecause the sandbox cannot clonecompat-table(network certificate error). The lint run also hit an error in the eslint step that I did not investigate. Neither failure involves the backported change.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.