LibJS: Always emit value in emit_named_evaluation_if_anonymous_function

There does not appear to be any case that we need to return an
OptionalNone{}.
This commit is contained in:
Shannon Booth 2025-05-16 12:31:42 +12:00 committed by Alexander Kalenik
parent 20dba8f1ab
commit f2fb86abea
Notes: github-actions[bot] 2025-05-23 01:26:59 +00:00
3 changed files with 15 additions and 16 deletions

View file

@ -165,7 +165,7 @@ public:
void pop_home_object();
void emit_new_function(ScopedOperand dst, JS::FunctionExpression const&, Optional<IdentifierTableIndex> lhs_name);
CodeGenerationErrorOr<Optional<ScopedOperand>> emit_named_evaluation_if_anonymous_function(Expression const&, Optional<IdentifierTableIndex> lhs_name, Optional<ScopedOperand> preferred_dst = {});
CodeGenerationErrorOr<ScopedOperand> emit_named_evaluation_if_anonymous_function(Expression const&, Optional<IdentifierTableIndex> lhs_name, Optional<ScopedOperand> preferred_dst = {});
void begin_continuable_scope(Label continue_target, Vector<FlyString> const& language_label_set);
void end_continuable_scope();