Skip to content

Commit cfc90d0

Browse files
committed
Let's use "strange" names for local variables evaluation to avoid name-clashing
https://youtrack.jetbrains.com/issue/RUBY-17178
1 parent dac2c58 commit cfc90d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debase/context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Debase
22
class Context
33
def frame_locals(frame_no=0)
4-
frame_binding(frame_no).eval('local_variables.inject({}){|h, v| h[v.to_s] = eval(v.to_s); h}')
4+
frame_binding(frame_no).eval('local_variables.inject({}){|__h, __v| __h[__v.to_s] = eval(__v.to_s); __h}')
55
rescue => e
66
{'debase-debug' => "*Evaluation error: '#{e}'" }
77
end

0 commit comments

Comments
 (0)