From 7ae65d012130249b24e3a88ee3cfd82d0f2ef735 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 19 Nov 2015 06:33:05 +0000 Subject: * compile.c (iseq_compile_each): T_IMEMO/iseq objects should be wrap with ISeq wrappers. [Bug #11676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ compile.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05d26f8994..f8e877077c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 19 15:31:45 2015 Koichi Sasada + + * compile.c (iseq_compile_each): T_IMEMO/iseq objects should be + wrap with ISeq wrappers. [Bug #11676] + Thu Nov 19 15:16:12 2015 SHIBATA Hiroshi * lib/rubygems: Update to RubyGems 2.5.0+ HEAD(c6b4946). diff --git a/compile.c b/compile.c index 5962e8a6ae..e5ec768c94 100644 --- a/compile.c +++ b/compile.c @@ -5357,7 +5357,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) rb_id2str(node->nd_mid), ISEQ_TYPE_METHOD, line); - debugp_param("defn/iseq", (VALUE)method_iseq); + debugp_param("defn/iseq", rb_iseqw_new(method_iseq)); ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE)); ADD_INSN1(ret, line, putobject, ID2SYM(node->nd_mid)); @@ -5375,7 +5375,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) rb_id2str(node->nd_mid), ISEQ_TYPE_METHOD, line); - debugp_param("defs/iseq", (VALUE)singleton_method); + debugp_param("defs/iseq", rb_iseqw_new(singleton_method)); ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE)); COMPILE(ret, "defs: recv", node->nd_recv); -- cgit v1.2.3