diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp index 87264a9c1a..fcafeed728 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp @@ -30,9 +30,9 @@ void PromiseResolvingFunction::initialize(GlobalObject& global_object) define_direct_property(vm().names.length, Value(1), Attribute::Configurable); } -Value PromiseResolvingFunction::call() +ThrowCompletionOr<Value> PromiseResolvingFunction::call() { - return TRY_OR_DISCARD(m_native_function(vm(), global_object(), m_promise, m_already_resolved)); + return m_native_function(vm(), global_object(), m_promise, m_already_resolved); } void PromiseResolvingFunction::visit_edges(Cell::Visitor& visitor) |