mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 17:31:53 +00:00
don't clean properties hash while it is iterated, fixes #316
This commit is contained in:
parent
36f52e84d1
commit
1b7c593bbe
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user