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

* vm_eval.c (send_internal): PASS_PASSED_BLOCK_TH must be placed

just before calling rb_call0.

* bootstraptest/test_flow.rb: add a test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ktsj 2011-12-23 16:23:13 +00:00
parent c6cbbd6eea
commit dd834c683d
3 changed files with 21 additions and 1 deletions

View file

@ -549,3 +549,16 @@ assert_equal %Q{ENSURE\n}, %q{
assert_equal "false", src + %q{e.all? {false}}, bug
assert_equal "true", src + %q{e.include?(:foo)}, bug
end
assert_equal %q{ok}, %q{
$x = :ok
o = Object.new
def o.inspect(*args)
yield if block_given?
super
end
begin
nil.public_send(o) {$x = :ng}
rescue
end
$x
}