-
-
Notifications
You must be signed in to change notification settings - Fork 402
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 line terminator in string literal #1084
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1084 +/- ##
==========================================
+ Coverage 58.74% 58.81% +0.06%
==========================================
Files 176 176
Lines 12477 12467 -10
==========================================
+ Hits 7330 7332 +2
+ Misses 5147 5135 -12
Continue to review full report at Codecov.
|
a1bfba4
to
8d6eb54
Compare
Numbers are looking good :) Test262 conformance changes:
|
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.
I'm a little confused by some of the changes in the tests. The implementation seems good.
The test262 numbers have changed, latest commit reports:
Test262 conformance changes:
Test result | master count | PR count | difference |
---|---|---|---|
Total | 78,497 | 78,497 | 0 |
Passed | 24,850 | 24,862 | +12 |
Ignored | 15,587 | 15,587 | 0 |
Failed | 38,060 | 38,048 | -12 |
Panics | 18 | 18 | 0 |
Conformance | 31.66 | 31.67 | +0.02% |
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! Great job!
Fix octal escape in string literal Add tests Fix zero escape Fix zero escape lookahead Rename variables Rename helper functions Refactor match arms Fix escape line terminator sequence Fix single character escape Fix line terminator and escape followed by unicode char Fix broken tests Add NonOctalDecimalEscapeSequence Fix comment Refactor Modify error message Add tests Rename tests Add test for error Add comments for unsafe bytes to str Update boa/src/syntax/lexer/string.rs Co-authored-by: tofpie <75836434+tofpie@users.noreply.github.com> Minor refactor Remove unsafe bytes to str Fix panic when reading invalid utf-8 chars Refactor string literal Support invalid utf-8 chars in string literal input Add cook function for template literal Fix line continuation bug Add methods for utf16 buffer trait Add trait comments Add error message for template literal Add and fix comments Hide unused exported function and modify tests Fix bug Fix merge bug
6031e6e
to
8937bb2
Compare
Fix octal escape in string literal Add tests Fix zero escape Fix zero escape lookahead Rename variables Rename helper functions Refactor match arms Fix escape line terminator sequence Fix single character escape Fix line terminator and escape followed by unicode char Fix broken tests Add NonOctalDecimalEscapeSequence Fix comment Refactor Modify error message Add tests Rename tests Add test for error Add comments for unsafe bytes to str Update boa/src/syntax/lexer/string.rs Co-authored-by: tofpie <75836434+tofpie@users.noreply.github.com> Minor refactor Remove unsafe bytes to str Fix panic when reading invalid utf-8 chars Refactor string literal Support invalid utf-8 chars in string literal input Add cook function for template literal Fix line continuation bug Add methods for utf16 buffer trait Add trait comments Add error message for template literal Add and fix comments Hide unused exported function and modify tests Fix bug Fix merge bug
This Pull Request fixes/closes #1083.
It changes the following:
"\����"
)Since template literal now has its own method to process characters, I unexported the method
StringLiteral::take_string_characters
and removeStringTerminator::End
. Some tests ontake_string_characters
are modified to test on lexer directly.