mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibJS: Convert Object::set() to ThrowCompletionOr
This commit is contained in:
parent
b7e5f08e56
commit
1d45541278
Notes:
sideshowbarker
2024-07-18 03:07:37 +09:00
Author: https://github.com/linusg
Commit: 1d45541278
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
18 changed files with 89 additions and 188 deletions
|
@ -26,7 +26,7 @@ void Reference::put_value(GlobalObject& global_object, Value value)
|
|||
throw_reference_error(global_object);
|
||||
return;
|
||||
}
|
||||
global_object.set(m_name, value, Object::ShouldThrowExceptions::No);
|
||||
MUST(global_object.set(m_name, value, Object::ShouldThrowExceptions::No));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue