banister / pry-stack_explorer

MOVED TO https://github.com/pry/pry-stack_explorer
https://github.com/pry/pry-stack_explorer
Other
18 stars 1 forks source link

first frame repeated, not replaced by binding.of_caller(0) #25

Closed banister closed 12 years ago

banister commented 12 years ago

pry-stack_explorer is supposed to check if it can replace the first ordinary binding frame with a binding.of_caller(0) frame, and if it can, then replace it.

However running rake example it's clear that the original frame AS WELL AS the binding.of_caller frame are both pushed onto the stack:


[1] (pry) J: 0> show-stack

Showing all accessible frames in stack:
--
=> #0  c <Object#c()>
   #1 [method]  c <Object#c()>
   #2 [block]   block in b <Object#b()>
   #3 [method]  b <Object#b()>
   #4 [method]  alphabet <Object#alphabet(y)>
   #5 [class]   <class:J> 
   #6 [block]   block in <main> 
   #7 [eval]    <main> 
   #8 [top]     <main> 
[2] (pry) J: 0> up