Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-28 10:13:38 +03:00
parent 921b9dce65
commit 886a69cbb2

View File

@ -1703,7 +1703,6 @@ module.BaseParser = {
this.expand(page, ast, state) this.expand(page, ast, state)
: ast : ast
//return [...ast]
return ast return ast
// post handlers... // post handlers...
.map(function(section){ .map(function(section){
@ -1893,7 +1892,9 @@ object.Constructor('Page', BasePage, {
// expand the body... // expand the body...
var ast = expand ? var ast = expand ?
[...this.__parser__.expand(this, body, state)] // XXX async...
//[...this.__parser__.expand(this, body, state)]
this.__parser__.expand(this, body, state)
: body instanceof Array ? : body instanceof Array ?
body body
// NOTE: wrapping the body in an array effectively // NOTE: wrapping the body in an array effectively