diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-05 15:30:07 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-05 15:30:07 +0000 |
commit | 3b1371473805058fb41760a6f7628e12823f80e6 (patch) | |
tree | 0cd1af76bd023d4fa92415137c0ba428555eec8d /iseq.c | |
parent | 837c76bd7baee9aaeebd94b4c0719094e1463ff5 (diff) | |
download | ruby-3b1371473805058fb41760a6f7628e12823f80e6.tar.gz |
* iseq.c (insn_operand_intern): should handle Qundef embedded in
operand. [ruby-core:16656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -660,9 +660,14 @@ insn_operand_intern(rb_iseq_t *iseq, case TS_ID: /* ID (symbol) */ op = ID2SYM(op); case TS_VALUE: /* VALUE */ - ret = rb_inspect(op); - if (CLASS_OF(op) == rb_cISeq) { - rb_ary_push(child, op); + if (op == Qundef) { + ret = rb_str_new2("undef"); + } + else { + ret = rb_inspect(op); + if (CLASS_OF(op) == rb_cISeq) { + rb_ary_push(child, op); + } } break; |