From a04ab2388d383aff8bad161e25d05d2756df42b3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 27 Jul 2022 14:12:46 +0300 Subject: [PATCH] starting the move to ig-types' api... Signed-off-by: Alex A. Naanou --- pwiki2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index 8468021..efe5786 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1701,14 +1701,16 @@ module.BaseParser = { await this.expand(page, ast, state) : ast - //* XXX this is quite ugly... + /* XXX this is quite ugly... var blocks = [] for await (var a of ast){ blocks.push(a) } return blocks /*/ - return [...ast] + //return [...ast] + return await ast + .iter() //*/ // post handlers... .map(function(section){