소스 검색

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

Stefan Siegl 8 년 전
부모
커밋
1b7c593bbe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      v8js_v8object_class.cc

+ 1 - 1
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);
 	}