-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Merged by Bors] - Add early errors for escaped identifiers #2546
Conversation
Test262 conformance changes
Fixed tests (30):
|
Codecov Report
@@ Coverage Diff @@
## main #2546 +/- ##
==========================================
- Coverage 50.07% 50.03% -0.04%
==========================================
Files 379 379
Lines 37763 37836 +73
==========================================
+ Hits 18908 18930 +22
- Misses 18855 18906 +51
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Good work! Just a small comment to improve readability.
boa_parser/src/lexer/token.rs
Outdated
@@ -99,7 +99,7 @@ pub enum TokenKind { | |||
EOF, | |||
|
|||
/// An identifier. | |||
Identifier(Sym), | |||
Identifier((Sym, bool)), |
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.
Would be good to have a IsLegacyEscaped
enum instead of bool
, because there are a lot of places where it is not obvious what the bool
represents exactly.
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.
Good call, I added explicit types instead of the bool
s.
a11fbe1
to
f056e40
Compare
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.
Looks great!
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.
Looks good to me 😄
bors r+ |
This Pull Request changes the following: - Add early errors for escaped characters in object and class setters and getters. - Add early errors for escaped characters in class `static`. - Add early errors for escaped characters in `new.target`. - Add early errors for legacy octal/decial escapes that are used in string literals before a `"use strict"` directive.
Pull request successfully merged into main. Build succeeded: |
This Pull Request changes the following:
static
.new.target
."use strict"
directive.