mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
LibJS: Convert NativeFunction callback to ThrowCompletionOr
This commit is contained in:
parent
20163c0584
commit
ca27e5eff5
13 changed files with 91 additions and 65 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue