mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix
This commit is contained in:
@@ -234,7 +234,9 @@ export const do_eval_expand_calltree_node = (cxt, node) => {
|
|||||||
if(node.fn.__location != null) {
|
if(node.fn.__location != null) {
|
||||||
// fn is hosted, it created call, this time with children
|
// fn is hosted, it created call, this time with children
|
||||||
const result = children[0]
|
const result = children[0]
|
||||||
result.id = node.id
|
if(result.id != node.id) {
|
||||||
|
throw new Error('illegal state')
|
||||||
|
}
|
||||||
result.children = cxt.prev_children
|
result.children = cxt.prev_children
|
||||||
result.has_more_children = false
|
result.has_more_children = false
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user