on master help sign in
Merge pull request #1173 from elm-lang/dev
ac6df88Evan Czaplicki
src/Generate/JavaScript/Expression.hs+3
@@ -404,6 +404,9 @@ pathToTestableExpr root path exampleTest =
404 DT.Constructor _ ->
404 DT.Constructor _ ->
405 return (DotRef () accessExpr (Id () "ctor"))
405 return (DotRef () accessExpr (Id () "ctor"))
406
406
407+ DT.Literal (L.Chr _) ->
408+ return (DotRef () accessExpr (Id () "valueOf") `call` [])
409+
407 DT.Literal _ ->
410 DT.Literal _ ->
408 return accessExpr
411 return accessExpr
409
412