You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @ota-meshi! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."
馃捇
What problem are you trying to solve?
RegExp literals can now use the
d
flag, but thed
flag causes a parsing error.https://github.com/tc39/proposals/blob/master/finished-proposals.md
tc39/proposals@f0adbe1
https://github.com/tc39/proposal-regexp-match-indices
tc39/ecma262#1713
Describe the solution you'd like
Change the parser so that the d flag of the RegExp literal does not cause a parsing error.
I'm not familiar with it, but I might just add the flag to the next line.
https://github.com/babel/babel/blob/main/packages/babel-parser/src/tokenizer/index.js#L24
Describe alternatives you've considered
I don't think there is an alternative.
Documentation, Adoption, Migration Strategy
No response
The text was updated successfully, but these errors were encountered: