mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/weakref.rb, lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, enc/trans/japanese.c:
change "illegal" to "invalid" in a context which doesn' t against a law. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
efd7504d44
commit
173f1e1563
5 changed files with 10 additions and 8 deletions
|
@ -52,12 +52,12 @@ class WeakRef < Delegator
|
|||
|
||||
def __getobj__
|
||||
unless @@id_rev_map[self.object_id] == @__id
|
||||
Kernel::raise RefError, "Illegal Reference - probably recycled", Kernel::caller(2)
|
||||
Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
|
||||
end
|
||||
begin
|
||||
ObjectSpace._id2ref(@__id)
|
||||
rescue RangeError
|
||||
Kernel::raise RefError, "Illegal Reference - probably recycled", Kernel::caller(2)
|
||||
Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
|
||||
end
|
||||
end
|
||||
def __setobj__(obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue