diff --git a/Userland/Libraries/LibJS/Runtime/JSONObject.cpp b/Userland/Libraries/LibJS/Runtime/JSONObject.cpp index 7946cf53fe3..4213785f519 100644 --- a/Userland/Libraries/LibJS/Runtime/JSONObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/JSONObject.cpp @@ -509,6 +509,8 @@ Value JSONObject::internalize_json_property(GlobalObject& global_object, Object* } } else { auto property_list = value_object.enumerable_own_property_names(Object::PropertyKind::Key); + if (vm.exception()) + return {}; for (auto& property_name : property_list) { process_property(property_name.as_string().string()); if (vm.exception())