1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (is_defined): NODE_ATTRASGN should be assignment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-12-17 10:54:41 +00:00
parent 1b6b119e2c
commit dd8a919a00

2
eval.c
View file

@ -1881,7 +1881,6 @@ is_defined(self, node, buf)
goto check_bound;
case NODE_CALL:
case NODE_ATTRASGN:
PUSH_TAG(PROT_NONE);
if ((state = EXEC_TAG()) == 0) {
val = rb_eval(self, node->nd_recv);
@ -1937,6 +1936,7 @@ is_defined(self, node, buf)
return "false";
case NODE_ATTRSET:
case NODE_ATTRASGN:
case NODE_OP_ASGN1:
case NODE_OP_ASGN2:
case NODE_MASGN: