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

please be more assertive about the syntax errors pertaining to regular expressions #1051

Closed
rabbihyatt opened this Issue Dec 20, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@rabbihyatt

rabbihyatt commented Dec 20, 2017

Acting per the spec's guidelines, this one should err in run-time rather than in parse-time:

if (false) var l = /(/;

but apart from V8, nearly all other ones fail on this in parse time (that is, the parse the literal's contents at parse-time, which results in a 'missing )' error. I guess the spec could be more assertive on the fact that a regex's contents are parsed against the Pattern goal only in run-time, so that the point is not missed.

@rabbihyatt

This comment has been minimized.

Show comment
Hide comment
@rabbihyatt

rabbihyatt commented Dec 20, 2017

closing; #1050

@rabbihyatt rabbihyatt closed this Dec 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment