use iterator directly causing crash
This commit is contained in:
parent
a8a5a0a3f1
commit
1aff9adb59
@ -10,7 +10,7 @@ function* recursiveIterNodes(n: string): Generator<string> {
|
||||
}
|
||||
|
||||
function main() {
|
||||
const nodes = Array.from(recursiveIterNodes(node.root()));
|
||||
const nodes = recursiveIterNodes(node.root());
|
||||
|
||||
for (const node of nodes) {
|
||||
console.log(node);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user