mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bcb064eb0f
commit
0067dc24d8
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Dec 22 14:45:21 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
|
||||
|
||||
Sat Dec 22 14:27:27 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* regenc.c (onigenc_ascii_is_code_ctype): moved from enc/ascii.c.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# Documentation: William Webber <william@williamwebber.com>
|
||||
#
|
||||
#--
|
||||
# $Id: date.rb,v 2.32 2007-12-01 18:51:16+09 tadf Exp $
|
||||
# $Id: date.rb,v 2.33 2007-12-22 14:41:34+09 tadf Exp $
|
||||
#++
|
||||
#
|
||||
# == Overview
|
||||
|
@ -250,7 +250,7 @@ class Date
|
|||
ABBR_DAYNAMES = %w(Sun Mon Tue Wed Thu Fri Sat)
|
||||
|
||||
[MONTHNAMES, DAYNAMES, ABBR_MONTHNAMES, ABBR_DAYNAMES].each do |xs|
|
||||
xs.each{|x| x.freeze}.freeze
|
||||
xs.each{|x| x.freeze unless x.nil?}.freeze
|
||||
end
|
||||
|
||||
class Infinity < Numeric # :nodoc:
|
||||
|
|
Loading…
Reference in a new issue