on master help sign in
make presentation of runtime errors match previous releases
d347068Evan Czaplicki
compiler/src/Generate/JavaScript.hs+2−1
@@ -85,7 +85,8 @@ generateForRepl ansi localizer (Opt.GlobalGraph graph _) home name (Can.Forall _
85 debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
85 debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
86 evalState = addGlobal mode graph debugState (Opt.Global home name)
86 evalState = addGlobal mode graph debugState (Opt.Global home name)
87 in
87 in
88+ "process.on('uncaughtException', function(err) { process.stderr.write(err.toString() + '\\n'); process.exit(1); });"
88− Functions.functions
89+ <> Functions.functions
89 <> stateToBuilder evalState
90 <> stateToBuilder evalState
90 <> print ansi localizer home name tipe
91 <> print ansi localizer home name tipe
91
92