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

LibJS: Deduplicate labelled continue & break bytecode generation

Similar to the scoped continue and break, the only two differences
between these functions is the scope that is scanned for a matching
label, and the specific handling of a continue/break boundary.
This commit is contained in:
Shannon Booth 2023-07-19 20:06:25 +12:00 committed by Andreas Kling
parent 663e4507ea
commit a0d1ef34e2
2 changed files with 24 additions and 44 deletions

View file

@ -217,6 +217,7 @@ private:
Break,
};
void generate_scoped_jump(JumpType);
void generate_labelled_jump(JumpType, DeprecatedFlyString const& label);
Generator();
~Generator() = default;