fix(iterators): the index does not increase (#1399)
This commit is contained in:
committed by
GitHub
parent
269820e800
commit
418fc971fc
@@ -52,9 +52,9 @@ function NodeIterator:iterate()
|
|||||||
i = i + idx
|
i = i + idx
|
||||||
if n then
|
if n then
|
||||||
return n, i
|
return n, i
|
||||||
else
|
|
||||||
i = i + 1
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
i = i + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user