mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
removed __FILE__ and __LINE__ from target.eval() in pry_instance.rb,
so that we can recognize eval methods (by <main> and (eval))
This commit is contained in:
parent
c343f9c014
commit
f8ccad729d
1 changed files with 3 additions and 1 deletions
|
@ -136,7 +136,9 @@ class Pry
|
|||
end
|
||||
|
||||
# eval the expression and save to last_result
|
||||
Pry.last_result = target.eval r(target), __FILE__, __LINE__
|
||||
# Do not want __FILE__, __LINE__ here because we need to distinguish
|
||||
# (eval) methods for show-method and friends.
|
||||
Pry.last_result = target.eval r(target)
|
||||
|
||||
# save the pry instance to active_instance
|
||||
Pry.active_instance = self
|
||||
|
|
Loading…
Reference in a new issue