diff --git a/ChangeLog b/ChangeLog index fc9d7c6f74..f3ac80307a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 25 19:05:27 2008 Yukihiro Matsumoto + + * compile.c (defined_expr): should handle NODE_{AND,OR} as + "expression". [ruby-dev:35951] + Mon Aug 25 17:36:26 2008 Nobuyoshi Nakada * include/ruby/intern.h (rb_io_ungetbyte): added prototype. diff --git a/compile.c b/compile.c index 85f85ca300..b778bbd98f 100644 --- a/compile.c +++ b/compile.c @@ -2334,6 +2334,8 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret, case NODE_STR: case NODE_LIT: case NODE_ZARRAY: + case NODE_AND: + case NODE_OR: estr = "expression"; break;