fez-lisp 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/compiler.js +2 -2
package/package.json
CHANGED
package/src/compiler.js
CHANGED
@@ -144,7 +144,7 @@ const compile = (tree, Drill) => {
|
|
144
144
|
return `(${Arguments.map((x) =>
|
145
145
|
(compile(x, Drill) ?? '').toString().trim()
|
146
146
|
)
|
147
|
-
.filter(
|
147
|
+
.filter((x) => x !== undefined)
|
148
148
|
.join(',')});`
|
149
149
|
} else {
|
150
150
|
const res = compile(Arguments[0], Drill)
|
@@ -311,7 +311,7 @@ export const comp = (ast) => {
|
|
311
311
|
const Drill = { Variables: new Set(), Helpers: new Set() }
|
312
312
|
const raw = ast
|
313
313
|
.map((tree) => compile(tree, Drill))
|
314
|
-
.filter(
|
314
|
+
.filter((x) => x !== undefined)
|
315
315
|
.join('\n')
|
316
316
|
let program = ''
|
317
317
|
for (let i = 0; i < raw.length; ++i) {
|