on master help sign in
javascript: move constructor decl up after optimization
0420433raichoo
src/IRTS/CodegenJavaScript.hs+1−1
@@ -523,7 +523,7 @@ inlineJS js = transformJS inlineJS js
523
523
524
524
525reduceJS :: [JS] -> [JS]
525reduceJS :: [JS] -> [JS]
526−reduceJS js = reduceLoop [] ([], js)
526+reduceJS js = moveJSDeclToTop "__IDRRT__Con" $ reduceLoop [] ([], js)
527
527
528
528
529funName :: JS -> String
529funName :: JS -> String