Skip to content

Commit 03c2098

Browse files
committed
use ::Kernel.binding, not just any binding method out there
1 parent aeaf934 commit 03c2098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def frame_binding(frame)
2525

2626
def hbinding(frame)
2727
hash = frame_locals(frame)
28-
code = hash.keys.map{|k| "#{k} = hash['#{k}']" unless k=='self' }.compact.join(';') + ';binding'
28+
code = hash.keys.map{|k| "#{k} = hash['#{k}']" unless k=='self' }.compact.join(';') + ';::Kernel.binding'
2929
if obj = frame_self(frame)
3030
obj.instance_eval code
3131
else

0 commit comments

Comments
 (0)