mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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
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