fez-lisp 1.4.3 → 1.4.4
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/interpreter.js +5 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
package/src/interpreter.js
CHANGED
@@ -758,7 +758,11 @@ export const keywords = {
|
|
758
758
|
name ? ` ${name}` : ''
|
759
759
|
}) are provided (expects ${params.length} but got ${
|
760
760
|
props.length
|
761
|
-
})\n\n
|
761
|
+
})\n\n${
|
762
|
+
name
|
763
|
+
? `(${name} ${stringifyArgs(params)})`
|
764
|
+
: `(${KEYWORDS.ANONYMOUS_FUNCTION} ${stringifyArgs(params)})`
|
765
|
+
}`
|
762
766
|
)
|
763
767
|
const localEnv = Object.create(env)
|
764
768
|
// localEnv[KEYWORDS.BLOCK] = block[KEYWORDS.BLOCK]
|
package/src/utils.js
CHANGED
@@ -437,7 +437,7 @@ export const debug = (ast) => {
|
|
437
437
|
if (!isMaxCallStack) {
|
438
438
|
error.message += `\n${callStack
|
439
439
|
.reverse()
|
440
|
-
.map((x, i) =>
|
440
|
+
.map((x, i) => `\x1b[33m${Array(i + 2).join('.')}\x1b[31m(${x} \x1b[39m...\x1b[31m)`)
|
441
441
|
.join('\n')}`
|
442
442
|
throw error
|
443
443
|
} else logError(error.message)
|