build - Support iterating over generators

This commit is contained in:
2019-09-21 10:11:27 +05:30
parent 986f2c0aac
commit c92c64baa1
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ function getRootFiberNodeFromDOM(startElement?: Element): FiberNode | null {
}
let returnFiberNode = null;
for (const childNode of startElement.children) {
for (const childNode of [].slice.call(startElement.children)) {
returnFiberNode = getRootFiberNodeFromDOM(childNode);
if (returnFiberNode !== null) {
return returnFiberNode;