Skip to content

Commit abec905

Browse files
author
José Valim
committed
Use a more explicit pdict key
1 parent a0c0cb6 commit abec905

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/elixir/src/elixir_compiler.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ string(Contents, File, Dest) ->
2323
quoted(Forms, File) when is_binary(File) ->
2424
quoted(Forms, File, nil).
2525
quoted(Forms, File, Dest) ->
26-
Previous = get(elixir_compiled),
26+
Previous = get(elixir_module_binaries),
2727

2828
try
29-
put(elixir_compiled, []),
29+
put(elixir_module_binaries, []),
3030
elixir_lexical:run(File, Dest, fun
3131
(Pid) ->
3232
Env = elixir:env_for_eval([{line, 1}, {file, File}]),
3333
eval_forms(Forms, [], Env#{lexical_tracker := Pid})
3434
end),
35-
lists:reverse(get(elixir_compiled))
35+
lists:reverse(get(elixir_module_binaries))
3636
after
37-
put(elixir_compiled, Previous)
37+
put(elixir_module_binaries, Previous)
3838
end.
3939

4040
file(Relative) when is_binary(Relative) ->

lib/elixir/src/elixir_module.erl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,13 @@ load_form(Line, Data, Forms, Opts, E) ->
369369
Binary = add_docs_chunk(Binary0, Data, Line, Docs),
370370
eval_callbacks(Line, Data, after_compile, [E, Binary], E),
371371

372-
case get(elixir_compiled) of
372+
case get(elixir_module_binaries) of
373373
Current when is_list(Current) ->
374-
put(elixir_compiled, [{Module, Binary} | Current]),
374+
put(elixir_module_binaries, [{Module, Binary} | Current]),
375375

376376
case get(elixir_compiler_pid) of
377-
undefined -> ok;
377+
undefined ->
378+
ok;
378379
PID ->
379380
Ref = make_ref(),
380381
PID ! {module_available, self(), Ref, ?m(E, file), Module, Binary},

0 commit comments

Comments
 (0)