mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibJS: Remove a bunch of forgotten exception checks after TRY_OR_DISCARD
Not quite sure how that happened :^)
This commit is contained in:
parent
64aaf263a2
commit
ffee3890a7
Notes:
sideshowbarker
2024-07-18 02:11:16 +09:00
Author: https://github.com/linusg
Commit: ffee3890a7
Pull-request: https://github.com/SerenityOS/serenity/pull/10533
Reviewed-by: https://github.com/IdanHo ✅
9 changed files with 0 additions and 18 deletions
|
@ -48,8 +48,6 @@ Value WeakSetConstructor::construct(FunctionObject& new_target)
|
|||
auto& global_object = this->global_object();
|
||||
|
||||
auto* weak_set = TRY_OR_DISCARD(ordinary_create_from_constructor<WeakSet>(global_object, new_target, &GlobalObject::weak_set_prototype));
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
if (vm.argument(0).is_nullish())
|
||||
return weak_set;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue