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 frobert@inf.u-szeged.hu
This commit is contained in:
rerobika
2017-08-02 08:19:48 +02:00
committed by Zoltan Herczeg
parent 66b072d5ae
commit a3885be6ce
2 changed files with 35 additions and 0 deletions
+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;
}