1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibJS: Generate unwind chains for continue in Bytecode

This works similar to `break`
The `try-finally-continue` still do not pass with this, likely because
of binding issues.
This commit is contained in:
Hendiadyoin1 2022-11-25 16:35:39 +01:00 committed by Linus Groh
parent f5376cb282
commit d65488b80c
4 changed files with 55 additions and 19 deletions

View file

@ -216,7 +216,8 @@ public:
void generate_break();
void generate_break(DeprecatedFlyString const& break_label);
Label perform_needed_unwinds_for_labelled_continue_and_return_target_block(DeprecatedFlyString const& continue_label);
void generate_continue();
void generate_continue(DeprecatedFlyString const& continue_label);
void start_boundary(BlockBoundaryType type) { m_boundaries.append(type); }
void end_boundary(BlockBoundaryType type)