From 69430855e070176033b25cef9804dc8eda7c5ff3 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Tue, 21 Sep 2021 22:02:40 +0300 Subject: [PATCH] LibJS: Remove non-specification compliant exception check --- Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp index d8bac17cf6..d2744b8270 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp @@ -496,8 +496,7 @@ Object* create_mapped_arguments_object(GlobalObject& global_object, FunctionObje // 8. Set obj.[[Delete]] as specified in 10.4.4.5. // 9. Set obj.[[Prototype]] to %Object.prototype%. auto* object = vm.heap().allocate(global_object, global_object, environment); - if (vm.exception()) - return nullptr; + VERIFY(!vm.exception()); // 14. Let index be 0. // 15. Repeat, while index < len,