LibJS: Make ESFO::ordinary_call_evaluate_body() return TCO<Value>

This matches what the caller wants to return and allows us to simplify
a bunch of logic around returning a value or throwing.
This commit is contained in:
Andreas Kling 2025-04-28 02:11:57 +02:00 committed by Andreas Kling
parent 670e439e1e
commit 074ca5d5b4
Notes: github-actions[bot] 2025-04-28 10:45:49 +00:00
2 changed files with 10 additions and 15 deletions

View file

@ -190,7 +190,7 @@ private:
virtual bool is_strict_mode() const override { return shared_data().m_strict; }
Completion ordinary_call_evaluate_body(VM&);
ThrowCompletionOr<Value> ordinary_call_evaluate_body(VM&);
[[nodiscard]] bool function_environment_needed() const { return shared_data().m_function_environment_needed; }
SharedFunctionInstanceData const& shared_data() const { return m_shared_data; }