Skip to content

Conversation

@liuxingbaoyu
Copy link
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 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
Member Author

Choose a reason for hiding this comment

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

This may also be removed (probably Babel 8)

Copy link
Member

Choose a reason for hiding this comment

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

I would keep it just for consistency with other literals

@babel-bot
Copy link
Collaborator

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

@liuxingbaoyu 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 liuxingbaoyu requested a review from JLHwung June 5, 2024 16:19
@nicolo-ribaudo 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 nicolo-ribaudo merged commit 61b2f56 into babel:main Jun 6, 2024
@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 Sep 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2024
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