mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Convert NativeFunction callback to ThrowCompletionOr
This commit is contained in:
committed by
Linus Groh
parent
20163c0584
commit
ca27e5eff5
@@ -32,7 +32,7 @@ void PromiseResolvingFunction::initialize(GlobalObject& global_object)
|
||||
|
||||
Value PromiseResolvingFunction::call()
|
||||
{
|
||||
return m_native_function(vm(), global_object(), m_promise, m_already_resolved);
|
||||
return TRY_OR_DISCARD(m_native_function(vm(), global_object(), m_promise, m_already_resolved));
|
||||
}
|
||||
|
||||
void PromiseResolvingFunction::visit_edges(Cell::Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user