mirror of
https://github.com/phpv8/v8js.git
synced 2025-03-22 13:37:03 +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). */
|
* it (instead of crashing the engine). */
|
||||||
return obj->properties;
|
return obj->properties;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!obj->properties->u.v.nIteratorsCount) {
|
||||||
zend_hash_clean(obj->properties);
|
zend_hash_clean(obj->properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user