aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-07 19:50:49 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-07 19:50:49 +0000
commit2d65545f1b0240550b5adb888be8f20989cb0d06 (patch)
tree4faf9403cc1b3b85bb4927c0be9300f04c5e0b94 /iseq.c
parentbd22fbf9c9ed644b24974e7fd6a8a4190dce2b36 (diff)
downloadruby-2d65545f1b0240550b5adb888be8f20989cb0d06.tar.gz
iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Fix RubyVM::InstructionSequence#to_a after r49517 Keywords were made symbols to fix [Bug #10831] [ruby-core:68031], so we should dump symbols as-is instead of attempting to convert them from IDs * iseq.c (iseq_data_to_ary): dump kw_arg as symbol * test/-ext-/iseq_load/test_iseq_load.rb: test kw_arg roundtrip [ruby-core:69891] [Bug #11338] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index cd7f67ac14..e8318b9233 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1795,7 +1795,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
orig_argc -= ci->kw_arg->keyword_len;
for (i = 0; i < ci->kw_arg->keyword_len; i++) {
- rb_ary_push(kw, ID2SYM(ci->kw_arg->keywords[i]));
+ rb_ary_push(kw, ci->kw_arg->keywords[i]);
}
rb_hash_aset(e, ID2SYM(rb_intern("kw_arg")), kw);
}