mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Convert NativeFunction callback to ThrowCompletionOr
This commit is contained in:
parent
20163c0584
commit
ca27e5eff5
Notes:
sideshowbarker
2024-07-18 02:08:51 +09:00
Author: https://github.com/IdanHo
Commit: ca27e5eff5
Pull-request: https://github.com/SerenityOS/serenity/pull/10543
Reviewed-by: https://github.com/linusg
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