mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
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:
parent
670e439e1e
commit
074ca5d5b4
Notes:
github-actions[bot]
2025-04-28 10:45:49 +00:00
Author: https://github.com/awesomekling
Commit: 074ca5d5b4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4499
2 changed files with 10 additions and 15 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue