mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibJS: Add missing exception check in internalize_json_property
The call to enumerable_own_property_names in the non-array case was missing an exception check. Fixes 1 test262 case (JSON/parse/reviver-object-own-keys-err.js)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user