From e91e0f2824a0c794639c31731e6f1c82ade55bdf Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Fri, 19 May 2023 17:33:25 +0300 Subject: [PATCH] fix --- src/runtime.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/runtime.js b/src/runtime.js index 7dec0a6..ba71120 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -202,10 +202,8 @@ export const do_eval_expand_calltree_node = (cxt, node) => { synchronous for simplicity */ export const do_eval_find_call = (cxt, calltree, location) => { - // Sanity check - if(cxt.children != null) { - throw new Error('illegal state') - } + // TODO always cleanup children when work finished, not before it started + cxt.children = null const do_find = node => { if(node.children != null) {