summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-12 05:05:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-12 05:05:50 +0000
commitb15fe02d194990c0eba875b733b41ae598e90211 (patch)
tree0cce344400a7c522d09481fb6c09fb0a8a0a3b6e /compile.c
parent6c1e664bb1f7492db8dc3af02e8d159969c6bec0 (diff)
* eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)"
should not operate assignment. [ruby-dev:34645] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 93bcb8a12f..e29d6aedd3 100644
--- a/compile.c
+++ b/compile.c
@@ -2473,6 +2473,8 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
case NODE_OP_ASGN1:
case NODE_OP_ASGN2:
+ case NODE_OP_ASGN_OR:
+ case NODE_OP_ASGN_AND:
case NODE_MASGN:
case NODE_LASGN:
case NODE_DASGN: