mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-26 05:16:29 +08:00
Add TODOs
This commit is contained in:
parent
d8833be010
commit
4badf40afc
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue