* 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/branches/ruby_1_8@16385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-05-12 05:01:01 +00:00
parent cb4387963e
commit 9193324a10
2 changed files with 7 additions and 0 deletions

2
eval.c
View file

@ -2440,6 +2440,8 @@ is_defined(self, node, buf)
case NODE_ATTRSET:
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: