summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 475259cca90..ecb9a9f4e7b 100644
--- a/proc.c
+++ b/proc.c
@@ -2452,6 +2452,7 @@ proc_binding(VALUE self)
if (!IS_METHOD_PROC_NODE((NODE *)iseq)) {
rb_raise(rb_eArgError, "Can't create Binding from C level Proc");
}
+ iseq = rb_method_get_iseq(RNODE(iseq)->u2.value);
}
bindval = rb_binding_alloc(rb_cBinding);