mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 18:15:56 +08:00
Add TODOs
This commit is contained in:
parent
d8833be010
commit
4badf40afc
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue