finishing record io

This commit is contained in:
Dmitry Vasilev
2023-02-14 18:03:10 +08:00
parent 6c82e78a0f
commit e7d4fce372
10 changed files with 130 additions and 96 deletions

View File

@@ -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]