-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
feat: Support ES2024 and regexp v flag #575
Conversation
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.
LGTM, thank you!
Would like @mdjermanovic to approve before merging.
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.
LGTM, thanks! Leaving open in case anyone else wants to review it before merging.
"index": 13, | ||
"lineNumber": 1, | ||
"column": 14, | ||
"message": "Invalid regular expression flag" |
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 message is kind of misleading as all the flags are valid regex flags but the combination (uv
) is invalid. Nothing we can do about it in espree, though.
Didn't see the other approval. Merging now |
So this means ES2023 is final, right? |
Yes, here's the specification: https://tc39.es/ecma262/2023/ Hashbang Grammar was the only syntax addition in ES2023 (to check, see https://github.com/tc39/proposals/blob/main/finished-proposals.md, last column is the spec year) and espree supports it. |
This PR enables ES2024 and changes ES2024 to the latest supported version.
It also adds support for the regexp v flag.
Acorn has been merged with changes that add support for the regexp v flag. (But not yet released.)
acornjs/acorn#1219 (comment)
acornjs/acorn@1f8c7f1
acornjs/acorn@fb4c582
See also:
https://github.com/tc39/proposal-regexp-v-flag
tc39/ecma262#2418