Skip to content

Commit

Permalink
Merge pull request rubinius#1249 from ctoneal/19_regexp_match
Browse files Browse the repository at this point in the history
1.9:  Fixed Regexp#match to throw TypeError if passed an Exception
  • Loading branch information
dbussink committed Oct 13, 2011
2 parents 8524fcb + e6c6043 commit 5749bc4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
2 changes: 0 additions & 2 deletions kernel/common/exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ def message
to_s
end

alias_method :to_str, :message

def inspect
"#<#{self.class.name}: #{self.to_s}>"
end
Expand Down
3 changes: 3 additions & 0 deletions kernel/common/exception18.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Exception
alias_method :to_str, :message
end
2 changes: 2 additions & 0 deletions kernel/common/exception19.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Exception
end
1 change: 1 addition & 0 deletions kernel/common/load_order18.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ argf.rbc
argf18.rbc
tuple.rbc
exception.rbc
exception18.rbc
undefined.rbc
hash18.rbc
type.rbc
Expand Down
1 change: 1 addition & 0 deletions kernel/common/load_order19.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ argf.rbc
argf19.rbc
tuple.rbc
exception.rbc
exception19.rbc
undefined.rbc
hash19.rbc
hash_hamt.rbc
Expand Down
2 changes: 2 additions & 0 deletions kernel/common/load_order20.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ enumerator19.rbc
argf.rbc
tuple.rbc
exception.rbc
exception19.rbc
undefined.rbc
hash19.rbc
hash_hamt.rbc
Expand Down Expand Up @@ -85,6 +86,7 @@ objectspace.rbc
string.rbc
string19.rbc
range.rbc
range19.rbc
struct.rbc
process.rbc
random.rbc
Expand Down
1 change: 0 additions & 1 deletion spec/tags/19/ruby/core/exception/to_str_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/19/ruby/core/regexp/match_tags.txt

This file was deleted.

0 comments on commit 5749bc4

Please sign in to comment.