ecma_delete_property must recreate the hashmap even if one of the properties is still valid. (#1938)

Fixes #1934.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This commit is contained in:
rerobika authored and Zoltan Herczeg committed 2017-08-02 08:19:48 +02:00
1 parent 66b072d5ae
commit a3885be6ce
2 files changed
+35

No files matched your search

+5
View File
@@ -821,6 +821,11 @@ ecma_delete_property (ecma_object_t *object_p, /**< object */
if (cur_prop_p->types[1 - i] != ECMA_PROPERTY_TYPE_DELETED)
{
/* The other property is still valid. */
if (hashmap_status == ECMA_PROPERTY_HASHMAP_DELETE_RECREATE_HASHMAP)
{
ecma_property_hashmap_free (object_p);
ecma_property_hashmap_create (object_p);
}
return;
}