mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6009790e40
Couldn't figure out failed/fixed versions.
21 lines
261 B
Ruby
21 lines
261 B
Ruby
assert_equal 'ok', %q{
|
|
def m
|
|
lambda{
|
|
proc{
|
|
return :ng1
|
|
}
|
|
}.call.call
|
|
:ng2
|
|
end
|
|
|
|
begin
|
|
m()
|
|
rescue LocalJumpError
|
|
:ok
|
|
end
|
|
}
|
|
|
|
# This randomly fails on mswin.
|
|
assert_equal %q{[]}, %q{
|
|
Thread.new{sleep}.backtrace
|
|
}
|