From 1b7c593bbe1dee04300449743a7320b1eedae21f Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Thu, 8 Jun 2017 23:18:52 +0200 Subject: [PATCH] don't clean properties hash while it is iterated, fixes #316 --- v8js_v8object_class.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v8js_v8object_class.cc b/v8js_v8object_class.cc index 8814bc8..d058b79 100644 --- a/v8js_v8object_class.cc +++ b/v8js_v8object_class.cc @@ -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); }