1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (rb_io_each_byte): caused infinite loop. [ruby-dev:31652]

* io.c (rb_io_getc): should return nil at EOF, not EOFError.

* lib/delegate.rb (SimpleDelegator::__setobj__): use raise
  argument to specify backtrace.

* test/ruby/test_fnmatch.rb (TestFnmatch::bracket_test):
  String#include? no longer works for Fixnum.  use #chr.
  [ruby-dev:31652]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-08-26 17:22:26 +00:00
parent 98d6d636e3
commit 1a0b7d0fb6
4 changed files with 22 additions and 8 deletions

View file

@ -283,8 +283,7 @@ def DelegateClass(superclass)
begin
@delegate_dc_obj.__send(:#{method}, *args, &block)
rescue
$@[0,2] = nil
raise
raise $!, $@[2..-1]
end
end
EOS