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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/compiler.js +2 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fez-lisp",
3
3
  "description": "Lisp interpreted & compiled to JavaScript",
4
4
  "author": "AT290690",
5
- "version": "1.2.10",
5
+ "version": "1.2.11",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
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(Boolean)
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(Boolean)
314
+ .filter((x) => x !== undefined)
315
315
  .join('\n')
316
316
  let program = ''
317
317
  for (let i = 0; i < raw.length; ++i) {