-
-
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] - Labelled ByteCompiler Fix #2534
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2534 +/- ##
==========================================
+ Coverage 49.92% 50.11% +0.18%
==========================================
Files 377 377
Lines 37557 37438 -119
==========================================
+ Hits 18751 18761 +10
+ Misses 18806 18677 -129
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
c776af7
to
0335e1e
Compare
Since there are no early errors or specific places where execution depends on the statements being |
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.
Nice change and godd to add some more tests for break
!
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.
Nice improvements!
bors r+ |
<!--- Thank you for contributing to Boa! Please fill out the template below, and remove or add any information as you feel necessary. ---> This Pull Request addresses #2295, and another case that I came across when I was adding `Break` to the `ByteCompiler` I did have a question that came up during this regarding the spec. We currently don't implement the [BreakableStatement](https://tc39.es/ecma262/#prod-BreakableStatement). Any thoughts on whether we should be? Especially since `BreakableStatement` seems to be a bit of a inaccurate since `LabelledStatement` is breakable too. It changes the following: - Moves handling of label jump out of `compile_block` and into `compile_labelled`. - Adds a couple more tests to keep track of `LabelledStatement` breaks. Co-authored-by: Ness <[email protected]>
Pull request successfully merged into main. Build succeeded: |
This Pull Request addresses #2295, and another case that I came across when I was adding
Break
to theByteCompiler
I did have a question that came up during this regarding the spec. We currently don't implement the BreakableStatement. Any thoughts on whether we should be? Especially since
BreakableStatement
seems to be a bit of a inaccurate sinceLabelledStatement
is breakable too.It changes the following:
compile_block
and intocompile_labelled
.LabelledStatement
breaks.