mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix
This commit is contained in:
@@ -202,10 +202,8 @@ export const do_eval_expand_calltree_node = (cxt, node) => {
|
|||||||
synchronous for simplicity
|
synchronous for simplicity
|
||||||
*/
|
*/
|
||||||
export const do_eval_find_call = (cxt, calltree, location) => {
|
export const do_eval_find_call = (cxt, calltree, location) => {
|
||||||
// Sanity check
|
// TODO always cleanup children when work finished, not before it started
|
||||||
if(cxt.children != null) {
|
cxt.children = null
|
||||||
throw new Error('illegal state')
|
|
||||||
}
|
|
||||||
|
|
||||||
const do_find = node => {
|
const do_find = node => {
|
||||||
if(node.children != null) {
|
if(node.children != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user