Actions
Bug #5527
closedset_trace_func binding incorrect
Description
set_trace_func seems to be broken. I traced the issue to the binding
(b
below).
$ cat t.rb
fn = lambda do |e, f, l, m, b, k|
p Kernel.eval('self', b)
end
set_trace_func(fn)
" a ".strip
$ rbenv shell 1.8.7-p352
$ ruby t.rb
main
" a "
" a "
$ rbenv shell 1.9.3-rc1
$ ruby t.rb
main
main
main
main
It would seem the binding has somehow become the binding-of-caller, rather than receiver.
Actions
Like0
Like0Like0Like0Like0Like0