From 53182e43a3532dbf119c4c939969cc61f2e735a3 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Fri, 24 Nov 2023 11:12:23 +0800 Subject: [PATCH] fix --- src/runtime.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime.js b/src/runtime.js index b907bef..3f1a22a 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -234,7 +234,9 @@ export const do_eval_expand_calltree_node = (cxt, node) => { if(node.fn.__location != null) { // fn is hosted, it created call, this time with children const result = children[0] - result.id = node.id + if(result.id != node.id) { + throw new Error('illegal state') + } result.children = cxt.prev_children result.has_more_children = false return result