Fix lazy property name listing for ArrayIndices. (#3651)

This patch fixes #3648.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2020-04-15 15:21:06 +02:00
committed by GitHub
parent d82bbb1c77
commit b5977de99c
3 changed files with 48 additions and 13 deletions
+20 -11
View File
@@ -2079,25 +2079,34 @@ ecma_op_object_get_property_names (ecma_object_t *obj_p, /**< object */
}
case ECMA_OBJECT_TYPE_FUNCTION:
{
ecma_op_function_list_lazy_property_names (obj_p,
opts,
prop_names_p,
skipped_non_enumerable_p);
if (!is_array_indices_only)
{
ecma_op_function_list_lazy_property_names (obj_p,
opts,
prop_names_p,
skipped_non_enumerable_p);
}
break;
}
case ECMA_OBJECT_TYPE_EXTERNAL_FUNCTION:
{
ecma_op_external_function_list_lazy_property_names (opts,
prop_names_p,
skipped_non_enumerable_p);
if (!is_array_indices_only)
{
ecma_op_external_function_list_lazy_property_names (opts,
prop_names_p,
skipped_non_enumerable_p);
}
break;
}
case ECMA_OBJECT_TYPE_BOUND_FUNCTION:
{
ecma_op_bound_function_list_lazy_property_names (obj_p,
opts,
prop_names_p,
skipped_non_enumerable_p);
if (!is_array_indices_only)
{
ecma_op_bound_function_list_lazy_property_names (obj_p,
opts,
prop_names_p,
skipped_non_enumerable_p);
}
break;
}
case ECMA_OBJECT_TYPE_CLASS: