Skip to content

[babel 8] fix: stricter rest element builder check#13715

Merged
JLHwung merged 1 commit intobabel:mainfrom
JLHwung:stricter-rest-element-check
Aug 31, 2021
Merged

[babel 8] fix: stricter rest element builder check#13715
JLHwung merged 1 commit intobabel:mainfrom
JLHwung:stricter-rest-element-check

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Aug 30, 2021

Q                       A
Fixed Issues? When BABEL_TYPES_8_BREAKING is enabled, the RestElement constructor incorrectly allows AssignmentPattern as argument
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Per https://tc39.es/ecma262/#prod-BindingPattern, a binding pattern can only be either ArrayPattern or ObjectPattern.

@JLHwung JLHwung added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Aug 30, 2021
@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 99d6bf9:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Copy Markdown
Collaborator

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

@nicolo-ribaudo
Copy link
Copy Markdown
Member

The CI failure is unrelated. I'm running the e2e-breaking tests.

@nicolo-ribaudo nicolo-ribaudo changed the title fix: stricter rest element builder check [babel 8] fix: stricter rest element builder check Aug 30, 2021
@JLHwung JLHwung merged commit 6436733 into babel:main Aug 31, 2021
@JLHwung JLHwung deleted the stricter-rest-element-check branch August 31, 2021 13:31
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Dec 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue 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.

5 participants