fez-lisp 1.5.75 → 1.5.78

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/src/utils.js CHANGED
@@ -26,7 +26,8 @@ export const formatCallstack = (callstack) =>
26
26
  .join('\n')
27
27
  export const formatErrorWithCallstack = (error, callstack) =>
28
28
  `${error.message}\n${formatCallstack(callstack)}`
29
- export const getSuffix = (str) => str[str.length - 1]
29
+ // TODO figure out why name is sometimes undefined
30
+ export const getSuffix = (str) => (str ? str[str.length - 1] : '')
30
31
  export const removeNoCode = (source) =>
31
32
  source
32
33
  .replace(/(;.+|;)/g, '')
@@ -1 +0,0 @@
1
- {}