Skip to content

Commit 1b7c593

Browse files
committed
don't clean properties hash while it is iterated, fixes #316
1 parent 36f52e8 commit 1b7c593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v8js_v8object_class.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static HashTable *v8js_v8object_get_properties(zval *object) /* {{{ */
224224
* it (instead of crashing the engine). */
225225
return obj->properties;
226226
}
227-
} else {
227+
} else if (!obj->properties->u.v.nIteratorsCount) {
228228
zend_hash_clean(obj->properties);
229229
}
230230

0 commit comments

Comments
 (0)