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

Report invalid RegEx flags eagerly #102

Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented May 26, 2019

Relates to sebastienros/jint#571 . Invalid flags will produce null regex which Jint cannot handle, would seem more reasonable for JS parsing to prohibit such definition as Jint has no idea what could be the causes for RegEx instance's Value (string) to be null.

@lahma
Copy link
Collaborator Author

lahma commented May 26, 2019

@sebastienros can you check if this fix is valid, I didn't see a reason not to report flag problems as parsing exception.

@lahma lahma force-pushed the bugs/report-regex-flag-problems branch from 7ebbad0 to 715a6c9 Compare May 28, 2019 12:31
@sebastienros sebastienros merged commit e3576cf into sebastienros:dev May 28, 2019
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.

2 participants