-
-
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] - Fix labelled block statement #2285
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2285 +/- ##
==========================================
- Coverage 41.68% 41.56% -0.13%
==========================================
Files 234 235 +1
Lines 22001 22120 +119
==========================================
+ Hits 9172 9194 +22
- Misses 12829 12926 +97
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Test262 conformance changesVM implementation
Fixed tests (12):
|
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.
Thank you! I have some nitpicks, but the implementation looks good!
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.
Thank you!
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. Thanks for the addition!
bors r+ |
<!--- Thank you for contributing to Boa! Please fill out the template below, and remove or add any information as you feel neccesary. ---> This Pull Request fixes [x-after-break-to-label](https://github.com/tc39/test262/blob/dc1dc28aa46d9457e47550b34e6f25a8b80de826/test/language/block-scope/leave/x-after-break-to-label.js) ### Example ```js { let x = 2; L: { let x = 3; console.log(x === 3); break L; console.log(false); } console.log(x === 2); } ``` ### Previously > Uncaught "SyntaxError": "Cannot use the undeclared label 'L'" ### Now > true <br> true ### What did I do 1. add `lable` to `Node::Block` 2. push labelled-block's `control info` to `jump_info` list 3. pop it before `Opcode::PopEnvironment` Co-authored-by: creampnx_x <[email protected]>
Pull request successfully merged into main. Build succeeded: |
This Pull Request fixes x-after-break-to-label
Example
Previously
Now
What did I do
lable
toNode::Block
control info
tojump_info
listOpcode::PopEnvironment