Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/eex/lib/eex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ defmodule EEx do
### Helpers

defp do_eval(compiled, bindings, options) do
options = Keyword.take(options, [:file, :line, :module, :prune_binding])
{result, _} = Code.eval_quoted(compiled, bindings, options)
result
end
Expand Down
4 changes: 4 additions & 0 deletions lib/elixir/test/elixir/fixtures/dialyzer/regressions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ defmodule Dialyzer.Regressions do
migrate: true
)
end

def eex_eval_opts do
EEx.eval_string("foo <%= bar %>", [bar: "baz"], trim: true)
end
end
1 change: 1 addition & 0 deletions lib/elixir/test/elixir/kernel/dialyzer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ defmodule Kernel.DialyzerTest do
ArgumentError,
Atom,
Code,
EEx,
Enum,
Exception,
ExUnit.AssertionError,
Expand Down