mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* hash.c (rb_any_cmp): should handle Qundef in keys.
* eval.c (remove_method): should not remove a empty method to implement "undef". * eval.c (rb_eval): should allow singleton class def for true/false/nil. * parse.y (str_extend): backslash escape was done wrong. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dc7f9c1f89
commit
c46468d773
5 changed files with 36 additions and 10 deletions
1
hash.c
1
hash.c
|
@ -70,6 +70,7 @@ rb_any_cmp(a, b)
|
|||
if (SYMBOL_P(a) && SYMBOL_P(b)) {
|
||||
return a != b;
|
||||
}
|
||||
if (a == Qundef || b == Qundef) return -1;
|
||||
|
||||
args[0] = a;
|
||||
args[1] = b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue