-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(ecma/lexer): hexadecimal escape sequences #2838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Oh, some tests are failing. |
sure, but I think transform `\x3c!--` to "\\x3c--" isn't right for a minifer. I'm looking into it, any idea? |
@@ -23,6 +23,7 @@ where | |||
}) && (M::force_str_for_tpl() | |||
|| (!c.value.contains("\\n") && !c.value.contains("\\r"))) | |||
&& !c.value.contains("\\0") | |||
&& !c.value.contains("\\x") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before this, we store
`\x21`
like \0x21, hit line 25.
now it is \x21 so I add this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
fix #2822