mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +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:
parent
5c3f781031
commit
99cb54670f
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue