Skip to content

Commit 1aeb90f

Browse files
committed
Move updating of module info so we can use it for caching
1 parent ee725fd commit 1aeb90f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elixir_script/passes/translate/module.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ defmodule ElixirScript.Translate.Module do
7070
exports
7171
)
7272

73-
ModuleState.put_module(pid, module, Map.put(info, :js_ast, hd(js_ast)))
73+
info = Map.put(info, :js_ast, hd(js_ast))
74+
75+
ModuleState.put_module(pid, module, info)
7476
end
7577
end
7678

0 commit comments

Comments
 (0)