-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix: do not add .value: undefined to regexp literals
#16490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: do not add .value: undefined to regexp literals
#16490
Conversation
| "RegExpLiteral", | ||
| ); | ||
| const node = this.startNode<N.RegExpLiteral>(); | ||
| this.addExtra(node, "raw", this.input.slice(node.start, this.state.end)); |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56883 |
.value: undefined to regexp literals
.value: undefined to regexp literals.value: undefined to regexp literals
I tried representing
undefinedasnullinoutput.json, but that would cause changes for 5000+ tests.