diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp index 2a5ae66689..85ac2a78e0 100644 --- a/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp @@ -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; |