Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upplease be more assertive about the syntax errors pertaining to regular expressions #1051
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
rabbihyatt
commented
Dec 20, 2017
|
closing; #1050 |
rabbihyatt
closed this
Dec 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rabbihyatt commentedDec 20, 2017
•
edited
Acting per the spec's guidelines, this one should err in run-time rather than in parse-time:
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
Patterngoal only in run-time, so that the point is not missed.