Skip to content

Commit b7ce7d1

Browse files
committed
Pass frame name through as method name
Binding.getName is the wrong name again and this field should be evaluated to see if it is used properly anywhere.
1 parent eca7eb0 commit b7ce7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/jruby/ir/interpreter/Interpreter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static IRubyObject evalWithBinding(ThreadContext context, IRubyObject sel
186186
Frame lastFrame = context.preEvalWithBinding(binding);
187187
try {
188188
return evalCommon(context, evalScope, self, src, binding.getFile(),
189-
binding.getLine(), binding.getMethod(), binding.getFrame().getBlock(), EvalType.BINDING_EVAL, bindingGiven);
189+
binding.getLine(), binding.getFrame().getName(), binding.getFrame().getBlock(), EvalType.BINDING_EVAL, bindingGiven);
190190
} finally {
191191
context.postEvalWithBinding(binding, lastFrame);
192192
}

0 commit comments

Comments
 (0)