mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
finishing record io
This commit is contained in:
@@ -519,6 +519,7 @@ const do_eval_frame_expr = (node, scope, callsleft, context) => {
|
||||
const value = children.reduce(
|
||||
(arr, el) => {
|
||||
if(el.type == 'spread') {
|
||||
// TODO check if iterable and throw error
|
||||
return [...arr, ...el.children[0].result.value]
|
||||
} else {
|
||||
return [...arr, el.result.value]
|
||||
|
||||
Reference in New Issue
Block a user