Fix LSP crash and tokenizer issue

This commit is contained in:
2026-03-27 20:21:57 -07:00
parent c014233987
commit babbd01975
4 changed files with 13 additions and 3 deletions

View File

@@ -456,8 +456,7 @@ debugLog a = putStrLn (debugStr a)
pfunc stringToInt : String Int := `(s) => {
let rval = Number(s)
if (isNaN(rval)) throw new Error(s + " is NaN")
return rval
return isNaN(rval) ? 0 : rval
}`
class Foldable (m : U U) where