diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 21:13:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 21:13:10 +0000 |
commit | 0884d0b944de777d22b963dda47294d939c9fd90 (patch) | |
tree | 1c461fb938315f690eae1a3d6f5eb9d88ab63a60 /proc.c | |
parent | 85ba516877f26444bf9382f19bdb5d94527de945 (diff) | |
download | ruby-0884d0b944de777d22b963dda47294d939c9fd90.tar.gz |
proc.c: fix method proc binding location
* proc.c (proc_binding): use the original iseq on a binding from
proc from method object to get the location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |