mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix
This commit is contained in:
@@ -280,6 +280,8 @@ const jump_calltree_node = (_state, _current_calltree_node) => {
|
||||
} else {
|
||||
const frame = next.frames[active_calltree_node.id]
|
||||
callsite_node = find_node(frame, n =>
|
||||
(n.type == 'function_call' || n.type == 'new')
|
||||
&&
|
||||
n.result?.call?.id == current_calltree_node.id
|
||||
)
|
||||
loc = {
|
||||
|
||||
@@ -1050,7 +1050,7 @@ const eval_decl_pair = (s, eval_cxt, frame_cxt) => {
|
||||
|
||||
return {
|
||||
ok: true,
|
||||
node: {...s_evaled, result: node.result},
|
||||
node: {...s_evaled, result: {...node.result, call: null}},
|
||||
eval_cxt: {
|
||||
...next_eval_cxt,
|
||||
scope: {...next_eval_cxt.scope, ...next_scope},
|
||||
|
||||
Reference in New Issue
Block a user