Project

General

Profile

« Previous | Next » 

Revision fe3b21bb

Added by nobu (Nobuyoshi Nakada) almost 9 years ago

object.c: no TypeError at special const clone

  • object.c (rb_obj_clone2): no longer raise a TypeError for
    special constants, and return itself instead. however, if
    freeze option is false, raise an ArgumentError. [Feature#12979]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e