diff src/jscomp.sml @ 835:b0a85cbefed2

Less whining about match failures; fix singleton record Jscomp bug
author Adam Chlipala <adamc@hcoop.net>
date Tue, 02 Jun 2009 12:40:09 -0400
parents 74e9e7642f08
children 5154a047c6bc
line wrap: on
line diff
--- a/src/jscomp.sml	Tue Jun 02 11:50:53 2009 -0400
+++ b/src/jscomp.sml	Tue Jun 02 12:40:09 2009 -0400
@@ -852,7 +852,7 @@
                             let
                                 val (e, st) = jsE inner (e, st)
                             in
-                                (strcat [str "{_x:", e, str "}"], st)
+                                (strcat [str ("{_" ^ x ^ ":"), e, str "}"], st)
                             end
                           | ERecord ((x, e, _) :: xes) =>
                             let