mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
LibJS/Bytecode: Clear accumulator before entering while body
2 new passes on test262. :^)
This commit is contained in:
parent
b14032bbfa
commit
24b815d4a0
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/24b815d4a0 Pull-request: https://github.com/SerenityOS/serenity/pull/19814 Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 0 deletions
|
@ -671,6 +671,7 @@ Bytecode::CodeGenerationErrorOr<void> WhileStatement::generate_labelled_evaluati
|
|||
generator.switch_to_basic_block(body_block);
|
||||
generator.begin_continuable_scope(Bytecode::Label { test_block }, label_set);
|
||||
generator.begin_breakable_scope(Bytecode::Label { end_block }, label_set);
|
||||
generator.emit<Bytecode::Op::LoadImmediate>(js_undefined());
|
||||
TRY(m_body->generate_bytecode(generator));
|
||||
generator.end_breakable_scope();
|
||||
generator.end_continuable_scope();
|
||||
|
|
Loading…
Reference in a new issue