mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Andreas Kling
parent
663e4507ea
commit
a0d1ef34e2
Notes:
sideshowbarker
2024-07-17 05:05:51 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/a0d1ef34e2 Pull-request: https://github.com/SerenityOS/serenity/pull/20095
@@ -217,6 +217,7 @@ private:
|
||||
Break,
|
||||
};
|
||||
void generate_scoped_jump(JumpType);
|
||||
void generate_labelled_jump(JumpType, DeprecatedFlyString const& label);
|
||||
|
||||
Generator();
|
||||
~Generator() = default;
|
||||
|
||||
Reference in New Issue
Block a user