1
Fork 0
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:
Linus Groh 2021-10-18 18:56:58 +01:00
parent 64aaf263a2
commit ffee3890a7
9 changed files with 0 additions and 18 deletions

View file

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