Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run ast_transforms with invokelatest #34778

Merged
merged 2 commits into from
Feb 17, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Run ast_transforms with invokelatest
  • Loading branch information
timholy committed Feb 16, 2020
commit d288569e89daecfb26ee4f9fac884bdef12a36ea
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function eval_user_input(@nospecialize(ast), backend::REPLBackend)
else
backend.in_eval = true
for xf in backend.ast_transforms
ast = xf(ast)
ast = Base.invokelatest(xf, ast)
end
value = Core.eval(Main, ast)
backend.in_eval = false
Expand Down