Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-02-15 14:23:39 +03:00
parent 730348c0fa
commit 44f33bf880

View File

@ -547,6 +547,14 @@ module.BaseParser = {
ast,
function(ast){
return ast
// XXX in case of @filter(..) can be a function that
// returns a promise...
// ...on a sync action this promise does not get a
// chance to resolve, and thus its value is lost...
// ...should this be fixed here or in filter???
// fixing it here -- mark and wrap ast in
// Promise's .all(..), .iter(..) or .seqiter(..)
// ...I'm leaning to fixing this in @filter(..)
.map(function(e){
// expand delayed sections...
e = typeof(e) == 'function' ?