fez-lisp 1.5.165 → 1.5.167

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 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.5.165",
5
+ "version": "1.5.167",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/check.js CHANGED
@@ -1052,10 +1052,10 @@ export const typeCheck = (ast, ctx = SPECIAL_FORM_TYPES) => {
1052
1052
  expected[STATS][SIGNATURE]
1053
1053
  }) the (${KEYWORDS.ANONYMOUS_FUNCTION}) argument of (${
1054
1054
  first[VALUE]
1055
- }) at position (${i}). Expected (${toTypeNames(
1056
- getReturn(expected[STATS])
1057
- )}) but got (${toTypeNames(
1058
- getReturn(actual[STATS])
1055
+ }) at position (${i}). Expected (${formatSubType(
1056
+ getReturns(expected[STATS])
1057
+ )}) but got (${formatSubType(
1058
+ getReturns(actual[STATS])
1059
1059
  )}) (${stringifyArgs(exp)}) (check #779)`
1060
1060
  )
1061
1061
  else if (!equalSubReturns(expected[STATS], actual[STATS]))
@@ -1064,10 +1064,10 @@ export const typeCheck = (ast, ctx = SPECIAL_FORM_TYPES) => {
1064
1064
  expected[STATS][SIGNATURE]
1065
1065
  }) the (${KEYWORDS.ANONYMOUS_FUNCTION}) argument of (${
1066
1066
  first[VALUE]
1067
- }) at position (${i}). Expected (${toTypeNames(
1068
- getReturn(expected[STATS])
1069
- )}) but got (${toTypeNames(
1070
- getReturn(actual[STATS])
1067
+ }) at position (${i}). Expected (${formatSubType(
1068
+ getReturns(expected[STATS])
1069
+ )}) but got (${formatSubType(
1070
+ getReturns(actual[STATS])
1071
1071
  )}) (${stringifyArgs(exp)}) (check #783)`
1072
1072
  )
1073
1073
  else
package/src/types.js CHANGED
@@ -56,7 +56,7 @@ export const toTypeNames = (type) => {
56
56
  return 'Unknown'
57
57
  case COLLECTION:
58
58
  // return 'Array'
59
- return '[Unknown]'
59
+ return 'Unknowns'
60
60
  case ANY:
61
61
  return 'Any'
62
62
  default:
@@ -1290,7 +1290,7 @@ export const SPECIAL_FORM_TYPES = {
1290
1290
  export const formatSubType = (T) => {
1291
1291
  switch (T[0]) {
1292
1292
  case COLLECTION:
1293
- return `[${
1293
+ return `${
1294
1294
  T[1] instanceof Set
1295
1295
  ? [...T[1]]
1296
1296
  .map((x) =>
@@ -1300,7 +1300,7 @@ export const formatSubType = (T) => {
1300
1300
  )
1301
1301
  .join(' ') || toTypeNames(UNKNOWN)
1302
1302
  : toTypeNames(UNKNOWN)
1303
- }]`
1303
+ }s`
1304
1304
  case ATOM:
1305
1305
  return `${
1306
1306
  T[1] instanceof Set