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

Added validation for regex literals via RegExp constructor #35957

Closed

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Jan 2, 2020

Fixes #3432.

Edit: tests pass in Node 12 but not 8. Filed #35958

@JoshuaKGoldberg
Copy link
Contributor Author

@typescript-bot perf test

@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Jan 2, 2020
4 tasks
@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jan 3, 2020

tests pass in Node 12 but not 8

This is why I'm really against taking a dependency in any way on the RegExp constructor. I'd rather we understand some basic set of regex sequences and report issues with them (e.g. parentheses matching)

@JoshuaKGoldberg
Copy link
Contributor Author

👍 I'll close this for now to keep the queue clean. Thanks!

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.

Compiler should error when encountering invalid regular expressions
2 participants