Skip to content

Commit 36fab9d

Browse files
committed
Fix stray file variable
1 parent d61a825 commit 36fab9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/iex/lib/iex/server.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ defmodule IEx.Server do
1212
counter = config.counter
1313
cache = config.cache
1414
code = cache ++ io_get(config)
15-
16-
file = nil # this needs to be config.scope.file
15+
file = "iex"
1716

1817
new_config =
1918
try do
@@ -24,7 +23,7 @@ defmodule IEx.Server do
2423
# a special way (to allow for continuation of an expression on the next
2524
# line in IEx). In case of any other error, we let :elixir_translator
2625
# to re-raise it.
27-
case :elixir_translator.forms(code, counter, "iex", []) do
26+
case :elixir_translator.forms(code, counter, file, []) do
2827
{ :ok, forms } ->
2928
{ result, new_binding, scope } =
3029
:elixir.eval_forms(forms, config.binding, config.scope)

0 commit comments

Comments
 (0)