mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
837c76bd7b
commit
3b13714738
2 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue May 6 00:29:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* iseq.c (insn_operand_intern): should handle Qundef embedded in
|
||||
operand. [ruby-core:16656]
|
||||
|
||||
Tue May 6 00:00:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* compile.c (iseq_compile_each): should call compile_cpath() for
|
||||
|
|
11
iseq.c
11
iseq.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue