on master help sign in
javascript: true else branch
6fe4238raichoo
src/IRTS/CodegenJavaScript.hs+1−1
@@ -187,7 +187,7 @@ compileJS (JSCond branches) =
187 intercalate " else " $ map createIfBlock branches
187 intercalate " else " $ map createIfBlock branches
188 where
188 where
189 createIfBlock (JSTrue, e) =
189 createIfBlock (JSTrue, e) =
190− "{\n"
190+ "if (true) {\n"
191 ++ compileJS e
191 ++ compileJS e
192 ++ ";\n}"
192 ++ ";\n}"
193 createIfBlock (cond, e) =
193 createIfBlock (cond, e) =