Skip to content
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

Add support for ES2024 Regex v flag #1219

Closed
wants to merge 8 commits into from

Conversation

ota-meshi
Copy link
Contributor

@ota-meshi ota-meshi commented May 23, 2023

This is a continuation of #1216 and #1218.

) {
pos = state.pos
}
state.pos = pos
Copy link
Member

Choose a reason for hiding this comment

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

Is it actually valid for --/&& to occur but then not be followed by a set operand? If not, why not move the parsing of the operand into the if and make it raise rather than return a boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it to raise an error if the operator is not followed by an operand.
0265d1b

@marijnh
Copy link
Member

marijnh commented May 24, 2023

I've merged this as 1f8c7f1 and followed up with fb4c582

@marijnh marijnh closed this May 24, 2023
@marijnh
Copy link
Member

marijnh commented May 24, 2023

Thanks for integrating all my comments!

@ota-meshi
Copy link
Contributor Author

Thank you for the many reviews! I will check the follow up diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants