mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
do not use with method (not supported in older safari)
This commit is contained in:
@@ -60,7 +60,7 @@ const add_trivial_definition = node => {
|
||||
} else if (node.type == 'decl_pair') {
|
||||
return {
|
||||
...node,
|
||||
children: node.children.with(0, add_trivial_definition(node.children[0]))
|
||||
children: [add_trivial_definition(node.children[0]), ...node.children.slice(1)]
|
||||
}
|
||||
} else {
|
||||
console.error(node)
|
||||
|
||||
Reference in New Issue
Block a user