Mercurial > urweb
diff src/jscomp.sml @ 726:6fc633d990e7
onError
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 16 Apr 2009 12:36:01 -0400 |
parents | a5d8b470d7ca |
children | 7c6b6c3c7b79 |
line wrap: on
line diff
--- a/src/jscomp.sml Thu Apr 16 12:07:21 2009 -0400 +++ b/src/jscomp.sml Thu Apr 16 12:36:01 2009 -0400 @@ -52,7 +52,8 @@ (("Basis", "recv"), "rv"), (("Basis", "strcat"), "cat"), (("Basis", "intToString"), "ts"), - (("Basis", "floatToString"), "ts")] + (("Basis", "floatToString"), "ts"), + (("Basis", "onError"), "onError")] structure FM = BinaryMapFn(struct type ord_key = string * string @@ -861,7 +862,7 @@ let val (e, st) = jsE inner (e, st) in - (strcat [str "alert(cat(\"ERROR: \",", e, str "))"], + (strcat [str "er(", e, str ")"], st) end