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

* vm_insnhelper.c (vm_throw): fix "return" process from "lambda".

* bootstraptest/test_proc.rb: add a test.
* bootstraptest/pending.rb: add a pending bug.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-06-19 02:46:02 +00:00
parent 33e5cfee7b
commit c3e619c83d
4 changed files with 57 additions and 16 deletions

View file

@ -13,3 +13,20 @@ assert_equal 'A', %q{
B.new.a = 'B'
A.new.a
}, '[ruby-core:17019]'
assert_equal 'ok', %q{
def m
lambda{
proc{
return :ng1
}
}.call.call
:ng2
end
begin
m()
rescue LocalJumpError
:ok
end
}