There was an error while loading. Please reload this page.
1 parent 1c7e7ec commit bb8d70cCopy full SHA for bb8d70c
2 files changed
lib/elixir_script.ex
@@ -179,7 +179,7 @@ defmodule ElixirScript do
179
default_options = Map.new
180
|> Map.put(:include_path, false)
181
|> Map.put(:root, nil)
182
- |> Map.put(:env, custom_env)
+ |> Map.put(:env, custom_env())
183
|> Map.put(:import_standard_libs, true)
184
|> Map.put(:core_path, "Elixir")
185
|> Map.put(:full_build, false)
lib/elixir_script/translator/state.ex
@@ -87,8 +87,11 @@ defmodule ElixirScript.Translator.State do
87
end
88
89
90
+ def is_module_loaded?(Kernel) do
91
+ false
92
+ end
93
+
94
def is_module_loaded?(module) when is_atom(module) do
- module = get_module_name(module)
95
Agent.get(__MODULE__, fn(state) ->
96
Code.ensure_loaded?(module) or (module in state.loaded_modules)
97
end)
0 commit comments