diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-12 05:05:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-12 05:05:50 +0000 |
commit | b15fe02d194990c0eba875b733b41ae598e90211 (patch) | |
tree | 0cce344400a7c522d09481fb6c09fb0a8a0a3b6e /compile.c | |
parent | 6c1e664bb1f7492db8dc3af02e8d159969c6bec0 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |