Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-07-11 19:56:33 +03:00
parent b1c1c4024f
commit 2fc3a7cc12

View File

@ -593,14 +593,10 @@ module.BaseParser = {
// - everything returns an ast // - everything returns an ast
// - callbacks/events/handlers to trigger on specific macro // - callbacks/events/handlers to trigger on specific macro
// resolution // resolution
// XXX Remove async/await... (???) //
// - for trivial stuff they are nice
// - infectios -- force all subsequent levels to use async/await
// - provide no alternatives
// ...i.e. promises can be extended to indlude partial
// states and the like, async/await can't...
// XXX Q: do we need generators? // XXX Q: do we need generators?
// XXX Handle errors... // XXX Handle errors...
// XXX BUG: awaiting on .wait* can deadlock...
expand: function(page, ast, state={}, nested_handlers={}){ expand: function(page, ast, state={}, nested_handlers={}){
var that = this var that = this
ast = typeof(ast) != 'object' ? ast = typeof(ast) != 'object' ?