mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibJS: Make generate_labelled_evaluation
non-virtual if possible
We don't override anything with definitions of this function in `SwitchStatement` and `LabelledStatement`. Also, we can make the `IterationStatement` abstract, there is no need to add a fallback error-generating stub implementation of this method.
This commit is contained in:
parent
6b08a52c8b
commit
456d750539
Notes:
github-actions[bot]
2025-05-12 17:41:52 +00:00
Author: https://github.com/BertalanD
Commit: 456d750539
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4703
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 5 additions and 13 deletions
|
@ -873,14 +873,6 @@ Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> LabelledStatement::gene
|
|||
return stmt_result;
|
||||
}
|
||||
|
||||
Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> IterationStatement::generate_labelled_evaluation(Bytecode::Generator&, Vector<FlyString> const&, [[maybe_unused]] Optional<ScopedOperand> preferred_dst) const
|
||||
{
|
||||
return Bytecode::CodeGenerationError {
|
||||
this,
|
||||
"Missing generate_labelled_evaluation()"sv,
|
||||
};
|
||||
}
|
||||
|
||||
Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> WhileStatement::generate_bytecode(Bytecode::Generator& generator, [[maybe_unused]] Optional<ScopedOperand> preferred_dst) const
|
||||
{
|
||||
Bytecode::Generator::SourceLocationScope scope(generator, *this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue