mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
make decl_pair evaluatable to righthand value
This commit is contained in:
@@ -1078,7 +1078,7 @@ const eval_decl_pair = (s, scope, calls, context) => {
|
||||
|
||||
return {
|
||||
ok: true,
|
||||
node: {...s_evaled, result: {ok: true}},
|
||||
node: {...s_evaled, result: node.result},
|
||||
scope: {...scope_after_expr, ...next_scope},
|
||||
calls: next_calls,
|
||||
}
|
||||
|
||||
@@ -1100,7 +1100,6 @@ const decl_pair = if_ok(
|
||||
return {
|
||||
...node,
|
||||
type: 'decl_pair',
|
||||
not_evaluatable: true,
|
||||
children: [lefthand, expr],
|
||||
}
|
||||
}
|
||||
@@ -1140,7 +1139,6 @@ const simple_decl_pair = if_ok(
|
||||
return {
|
||||
...node,
|
||||
type: 'decl_pair',
|
||||
not_evaluatable: true,
|
||||
children: [lefthand, expr],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user