FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: do not add `.value: undefined` to regexp literals by liuxingbaoyu · Pull Request #16490 · babel/babel · GitHub

/ babel Public

fix: do not add .value: undefined to regexp literals - #16490

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
liuxingbaoyu:remove-RegExpLiteral-value
Jun 6, 2024
Merged

nicolo-ribaudo merged 1 commit into
babel:mainfrom
liuxingbaoyu:remove-RegExpLiteral-value

Conversation

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #16419
Patch: Bug Fix? √
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? √
Documentation PR Link
Any Dependency Changes?
License MIT

I tried representing undefined as null in output.json, but that would cause changes for 5000+ tests.

liuxingbaoyu added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: parser labels May 13, 2024
"RegExpLiteral",
);
const node = this.startNode<N.RegExpLiteral>();
this.addExtra(node, "raw", this.input.slice(node.start, this.state.end));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This may also be removed (probably Babel 8)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I would keep it just for consistency with other literals

Copy link
Copy Markdown
Collaborator

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

liuxingbaoyu changed the title fix: @babel/parser adds .value: undefined to regexp literals fix: @babel/parser adds .value: undefined to regexp literals May 13, 2024
liuxingbaoyu requested a review from JLHwung June 5, 2024 16:19
nicolo-ribaudo changed the title fix: @babel/parser adds .value: undefined to regexp literals fix: do not add .value: undefined to regexp literals Jun 6, 2024
nicolo-ribaudo merged commit 61b2f56 into babel:main Jun 6, 2024
github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Sep 6, 2024
github-actions Bot locked as resolved and limited conversation to collaborators Sep 6, 2024
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 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 pkg: parser 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.

[Bug]: @babel/parser adds .value: undefined to regexp literals

4 participants


Back | FazBrowse Home | New Git URL