fez-lisp 1.2.46 → 1.2.47

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/README.md CHANGED
@@ -206,10 +206,12 @@ and only when compiled to JavaScript.
206
206
 
207
207
  ```js
208
208
  console.log(
209
- fez(
210
- `(let recursive:sum-to (lambda n acc (if (= n 0) acc (recursive:sum-to (- n 1) (+ n acc)))))
209
+ eval(
210
+ fez(
211
+ `(let recursive:sum-to (lambda n acc (if (= n 0) acc (recursive:sum-to (- n 1) (+ n acc)))))
211
212
  (recursive:sum-to 10000 0)`,
212
- { compile: 1, eval: 1 }
213
+ { compile: 1 }
214
+ )
213
215
  )
214
216
  )
215
217
  // 50005000
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.46",
5
+ "version": "1.2.47",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/utils.js CHANGED
@@ -247,7 +247,7 @@ export const fez = (source, options = {}) => {
247
247
  // if (options.check) typeCheck(ast)
248
248
  if (options.compile) {
249
249
  const js = Object.values(comp(deepClone(ast))).join('')
250
- return options.eval ? eval(js) : js
250
+ return js
251
251
  }
252
252
  return run(ast, env)
253
253
  } else if (Array.isArray(source)) {
@@ -256,7 +256,7 @@ export const fez = (source, options = {}) => {
256
256
  : source
257
257
  if (options.compile) {
258
258
  const js = Object.values(comp(deepClone(ast))).join('')
259
- return options.eval ? eval(js) : js
259
+ return js
260
260
  }
261
261
  return run(ast, env)
262
262
  } else {