mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6c1e664bb1
commit
b15fe02d19
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 12 13:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)"
|
||||
should not operate assignment. [ruby-dev:34645]
|
||||
|
||||
Mon May 12 13:29:26 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bigzero_p): check from MSB to LSB. [ruby-dev:34649]
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue