We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac830f commit 717c72eCopy full SHA for 717c72e
lib/iex/lib/iex/autocomplete.ex
@@ -55,10 +55,10 @@ defmodule IEx.Autocomplete do
55
56
@doc false
57
def exports(mod) do
58
- if function_exported?(mod, :__info__, 1) do
+ if Code.ensure_loaded?(mod) and function_exported?(mod, :__info__, 1) do
59
mod.__info__(:macros) ++ (mod.__info__(:functions) -- [__info__: 1])
60
else
61
- mod.module_info(:exports)
+ mod.module_info(:exports) -- [module_info: 0, module_info: 1]
62
end
63
64
0 commit comments