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

* lib/delegate.rb (Delegator#method_missing): __FILE__ may contain

multi-byte characters.  a patch from Kenta Murata in [ruby-dev:39066].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-08-13 15:21:32 +00:00
parent c8909ba601
commit eadc3604c0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Aug 14 00:19:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
multi-byte characters. a patch from Kenta Murata in [ruby-dev:39066].
Thu Aug 13 21:01:03 2009 wanabe <s.wanabe@gmail.com> Thu Aug 13 21:01:03 2009 wanabe <s.wanabe@gmail.com>
* vm.c (vm_exec): returning from lambda runs ensure section. * vm.c (vm_exec): returning from lambda runs ensure section.

View file

@ -137,7 +137,7 @@ class Delegator
target.__send__(m, *args, &block) target.__send__(m, *args, &block)
end end
rescue Exception rescue Exception
$@.delete_if{|s| %r"\A#{__FILE__}:\d+:in `method_missing'\z"o =~ s} $@.delete_if{|s| %r"\A#{Regexp.quote(__FILE__)}:\d+:in `method_missing'\z"o =~ s}
::Kernel::raise ::Kernel::raise
end end
end end