Add TODOs

This commit is contained in:
José Valim 2021-12-17 23:24:17 +01:00
parent d8833be010
commit 4badf40afc
2 changed files with 2 additions and 0 deletions

View file

@ -324,6 +324,7 @@ defmodule Livebook.Evaluator do
defp eval(code, binding, env) do
try do
quoted = Code.string_to_quoted!(code)
# TODO: Use Code.eval_quoted_with_env/3 on Elixir v1.14
{result, binding, env} = :elixir.eval_quoted(quoted, binding, env)
{:ok, result, binding, env}

View file

@ -9,6 +9,7 @@ defmodule Livebook.IntellisenseTest.Utils do
quote do
block = unquote(Macro.escape(block))
binding = []
# TODO: Use Code.eval_quoted_with_env/3 on Elixir v1.14
env = :elixir.env_for_eval([])
{_, binding, env} = :elixir.eval_quoted(block, binding, env)
{binding, env}