Skip to content

Commit

Permalink
don't clean properties hash while it is iterated, fixes phpv8#316
Browse files Browse the repository at this point in the history
  • Loading branch information
stesie committed Jun 8, 2017
1 parent 36f52e8 commit 1b7c593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v8js_v8object_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1b7c593

Please sign in to comment.