-
-
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] - Remove Syntax Errors from Bytecompiler #2598
Conversation
Test262 conformance changes
Fixed tests (9):
|
Codecov Report
@@ Coverage Diff @@
## main #2598 +/- ##
==========================================
+ Coverage 49.34% 49.60% +0.26%
==========================================
Files 386 384 -2
Lines 38962 39089 +127
==========================================
+ Hits 19224 19391 +167
+ Misses 19738 19698 -40
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
323cdc4
to
ffa854c
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.
Good work!
boa_ast/src/operations.rs
Outdated
/// [BreakStatement]: https://tc39.es/ecma262/#sec-break-statement-static-semantics-early-errors | ||
/// [ContinueStatement]: https://tc39.es/ecma262/#sec-continue-statement-static-semantics-early-errors | ||
#[must_use] | ||
pub fn check_labels<N>(node: &N, interner: &Interner) -> Option<String> |
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 think returning an Option
is a bit misleading. It would be better to return Result<(), String>
or even Result<(), CheckLabelsError>
to defer the error reporting to the parser.
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!
4cba625
to
c9acb9e
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 good to me!
bors r+ |
This Pull Request closes #1907. It changes the following: - Implement several early errors relating to labels, `break` and `continue` in the parser. - Implement an early error for invalid cover grammar of object literals in the parser. - Remove all remaining syntax errors from the bytecompiler.
Pull request successfully merged into main. Build succeeded: |
This Pull Request closes #1907.
It changes the following:
break
andcontinue
in the parser.