Skip to content

Commit

Permalink
include_string is bugged, leave it out for now
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Mar 25, 2014
1 parent 7eba587 commit d43d991
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/eval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ handle("editor.eval.julia") do req, data
task_local_storage()[:SOURCE_PATH] = path

try
if mod == Main
val = include_string(info[:code])
else
code = parse("begin\n"*info[:code]*"\nend")
val = eval(mod, code)
end
code = parse("begin\n"*info[:code]*"\nend")
val = eval(mod, code)
catch e
show_exception(req, sprint(showerror, e, catch_backtrace()), info[:lines])
return
Expand Down

0 comments on commit d43d991

Please sign in to comment.