ruby-changes:54659
From: kazu <ko1@a...>
Date: Sun, 20 Jan 2019 13:44:29 +0900 (JST)
Subject: [ruby-changes:54659] kazu:r66875 (trunk): raise FrozenError instead of RuntimeError
kazu 2019-01-20 13:44:25 +0900 (Sun, 20 Jan 2019) New Revision: 66875 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66875 Log: raise FrozenError instead of RuntimeError Modified files: trunk/lib/set.rb Index: lib/set.rb =================================================================== --- lib/set.rb (revision 66874) +++ lib/set.rb (revision 66875) @@ -527,7 +527,7 @@ class Set https://github.com/ruby/ruby/blob/trunk/lib/set.rb#L527 if @hash.respond_to?(:rehash) @hash.rehash # This should perform frozenness check. else - raise "can't modify frozen #{self.class.name}" if frozen? + raise FrozenError, "can't modify frozen #{self.class.name}" if frozen? end self end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/