-
-
Notifications
You must be signed in to change notification settings - Fork 415
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 assertion to check that a break label is identified at compile-time #1852
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1852 +/- ##
==========================================
- Coverage 55.57% 55.57% -0.01%
==========================================
Files 199 199
Lines 17760 17765 +5
==========================================
+ Hits 9871 9873 +2
- Misses 7889 7892 +3
Continue to review full report at Codecov.
|
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.
This looks good to me :) it's important to also get the panic to Result conversion soon, but this at least makes the VM more consistent.
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.
bors r+
…me (#1852) This PR changes the following: - Adds a check at compile time for the existence of a break label (this should be a syntax error in the future; refactor from panics to results in compile should be a separate PR) - Adds a test for break label existence in boa/tests 262 misses some fairly important JS parity issues and not performing this check eagerly can lead to other more severe issues during VM execution.
Pull request successfully merged into main. Build succeeded: |
…me (#1852) This PR changes the following: - Adds a check at compile time for the existence of a break label (this should be a syntax error in the future; refactor from panics to results in compile should be a separate PR) - Adds a test for break label existence in boa/tests 262 misses some fairly important JS parity issues and not performing this check eagerly can lead to other more severe issues during VM execution.
This PR changes the following:
262 misses some fairly important JS parity issues and not performing this check eagerly can lead to other more severe issues during VM execution.