Fix issue #286
That was a silly one :) Thanks for the report @mgold.
commite85c8f18dc81c0eed60ff5948ecab66067a78ec2
authorEvan Czaplicki <info@elm-lang.org>
dateTue 8 Oct 2013, 20:05 (13 years ago)
parentea38376
compiler/Generate/JavaScript.hs+1−1
@@ -255,7 +255,7 @@ match span mtch =
255255 Case.Fail ->
256256 return [ ExprStmt () (obj "_E.Case" `call` [ref "$moduleName", string (show span)]) ]
257257
258− Case.Break -> return []
258+ Case.Break -> return [BreakStmt () Nothing]
259259 Case.Other e ->
260260 do e' <- expression e
261261 return [ ReturnStmt () (Just e') ]