on master help sign in
improve error on bad messages sent to ports
c28b9dfEvan Czaplicki
compiler/Generate/JavaScript/Ports.hs+1−1
@@ -24,7 +24,7 @@ typeToString tipe =
24 JSString -> "a string"
24 JSString -> "a string"
25 JSArray -> "an array"
25 JSArray -> "an array"
26 JSObject fields ->
26 JSObject fields ->
27− "an object with fields " ++ List.intercalate ", " fields
27+ "an object with fields '" ++ List.intercalate "', '" fields ++ "'"
28
28
29
29
30check :: Expression () -> JSType -> Expression () -> Expression ()
30check :: Expression () -> JSType -> Expression () -> Expression ()