Fix issue #491
contents of Maybe were not converted to JS on export
commitc4628749e181b816b16e0da701fccb539a9ec15f
authorEvan Czaplicki <info@elm-lang.org>
dateSat 8 Feb 2014, 17:05 (13 years ago)
parenta5684ff
compiler/Generate/JavaScript/Ports.hs+1−1
@@ -109,7 +109,7 @@ out tipe x =
109109 | ctor == "Maybe.Maybe" ->
110110 CondExpr () (equal (DotRef () x (var "ctor")) (string "Nothing"))
111111 (NullLit ())
112− (DotRef () x (var "_0"))
112+ (out t (DotRef () x (var "_0")))
113113
114114 | ctor == "_List" ->
115115 DotRef () (obj "_J.fromList" <| x) (var "map") <| outgoing t