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
Regression: "\8", "\9" - Unexpected token ILLEGAL #1226
Comments
Those are not valid. If you feel otherwise, show me the grammar production that allows them. |
No, it is valid. "\8\9" works in the wild.
https://es5.github.io/#x16 |
Seems like the |
Standard ECMA-262 June 1997 http://tecfa.unige.ch/guides/js/e262-pdf.pdf
|
See whatwg/javascript#12 and especially https://bugs.ecmascript.org/show_bug.cgi?id=3477. |
This is what i saw in ES2015 RC1:
|
@dmethvin Good analysis! That means |
because it is valid in old spec - ECMA-262 1997. since
|
Yeah, I meant |
Why parser doesn't need to support it, If modern ECMAScript engines support it? How to parse obfuscated code, for example? |
Do we have some information as to how many scripts out there still utilizing such an escape sequence? In all cases, even if we want to support, at best this is an error that should be tolerated, aka when |
This is on the table for ES7: https://bugs.ecmascript.org/show_bug.cgi?id=3477 |
2.4.1
See #1106
bf5c615
Some valid strings that esprima currently does not parse:
The text was updated successfully, but these errors were encountered: