on master help sign in
make presentation of runtime errors match previous releases

can happen with Debug.todo and should not show a JS stack trace

commitd3470688827e56aca37d83b763ebf179f46ba213 authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 4 Sep 2019, 15:17 (7 years ago) parent093abc6
1 file changed+2−1
compiler/src/Generate/JavaScript.hs+2−1
compiler/src/Generate/JavaScript.hs+2−1
@@ -85,7 +85,8 @@ generateForRepl ansi localizer (Opt.GlobalGraph graph _) home name (Can.Forall _
8585 debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
8686 evalState = addGlobal mode graph debugState (Opt.Global home name)
8787 in
88− Functions.functions
88+ "process.on('uncaughtException', function(err) { process.stderr.write(err.toString() + '\\n'); process.exit(1); });"
89+ <> Functions.functions
8990 <> stateToBuilder evalState
9091 <> print ansi localizer home name tipe
9192