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:
parent
663e4507ea
commit
a0d1ef34e2
2 changed files with 24 additions and 44 deletions
|
@ -217,6 +217,7 @@ private:
|
|||
Break,
|
||||
};
|
||||
void generate_scoped_jump(JumpType);
|
||||
void generate_labelled_jump(JumpType, DeprecatedFlyString const& label);
|
||||
|
||||
Generator();
|
||||
~Generator() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue