1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibJS: Convert NativeFunction callback to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-19 22:53:27 +03:00 committed by Linus Groh
parent 20163c0584
commit ca27e5eff5
13 changed files with 91 additions and 65 deletions

View file

@ -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)