0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 18:41:52 +00:00

don't clean properties hash while it is iterated, fixes #316

This commit is contained in:
Stefan Siegl 2017-06-08 23:18:52 +02:00
parent 36f52e84d1
commit 1b7c593bbe
No known key found for this signature in database
GPG Key ID: 51575950154839CD

View File

@ -224,7 +224,7 @@ static HashTable *v8js_v8object_get_properties(zval *object) /* {{{ */
* it (instead of crashing the engine). */
return obj->properties;
}
} else {
} else if (!obj->properties->u.v.nIteratorsCount) {
zend_hash_clean(obj->properties);
}