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