diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-23 06:16:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-23 06:16:04 +0000 |
commit | a3abda46b041213614658ca4d8bf441ce5ebb2d5 (patch) | |
tree | 2b0fc5c072aabb9716bcb3be2639f131540b49bf /object.c | |
parent | 6e00a8b02cdcdf490b5381c62a067ff81728522f (diff) | |
download | ruby-a3abda46b041213614658ca4d8bf441ce5ebb2d5.tar.gz |
object.c: no TypeError at Symbol
* object.c (special_object_p): uninterned Symbol also should not
raise a TypeError but return itself instead, as well as interned
Symbols. [ruby-core:79216] [Bug #13145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -304,6 +304,7 @@ special_object_p(VALUE obj) switch (BUILTIN_TYPE(obj)) { case T_BIGNUM: case T_FLOAT: + case T_SYMBOL: return TRUE; default: return FALSE; |