-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Add loop and switch return values #2828
Conversation
Test262 conformance changes
Fixed tests (76):
|
Codecov Report
@@ Coverage Diff @@
## main #2828 +/- ##
==========================================
+ Coverage 51.90% 51.96% +0.06%
==========================================
Files 431 431
Lines 43562 43657 +95
==========================================
+ Hits 22609 22686 +77
- Misses 20953 20971 +18
|
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 work! Looks good to me! :)
c9a4df9
to
2d91f7a
Compare
Rebased. |
@jedel1043 I dont know if you already reviewed this or just enabled auto merge earlier, but now this is rebased again and ready. |
@@ -113,7 +80,45 @@ impl Operation for LoopEnd { | |||
const INSTRUCTION: &'static str = "INST - LoopEnd"; | |||
|
|||
fn execute(context: &mut Context<'_>) -> JsResult<CompletionType> { | |||
cleanup_loop_environment(context); | |||
//cleanup_loop_environment(context); |
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.
//cleanup_loop_environment(context); |
/// Set the loop return value for the current `EnvStackEntry`. | ||
pub(crate) fn set_loop_return_value(&mut self, value: &JsValue) -> bool { | ||
if let EnvEntryKind::Loop { value: v, .. } = &mut self.kind { | ||
*v = value.clone(); |
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.
If we're assigning v
anyways, maybe this should take value
by value then.
Just enabled auto merge, but left my review moments ago |
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.
All good, nice job!
This Pull Request changes the following:
env_stack
of theCallFrames
.break
andcontinue
.