mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
don't use toplevel return
Toplevel return is supported after Ruby 2.4, so don't use it for older BASERUBY.
This commit is contained in:
parent
b52513e2a1
commit
3f922f3b77
1 changed files with 5 additions and 2 deletions
|
@ -57,8 +57,10 @@ assert_equal 'ok', %q{
|
||||||
###
|
###
|
||||||
###
|
###
|
||||||
# Ractor still has several memory corruption so skip huge number of tests
|
# Ractor still has several memory corruption so skip huge number of tests
|
||||||
return if ENV['GITHUB_WORKFLOW'] &&
|
if ENV['GITHUB_WORKFLOW'] &&
|
||||||
ENV['GITHUB_WORKFLOW'] == 'Compilations'
|
ENV['GITHUB_WORKFLOW'] == 'Compilations'
|
||||||
|
# ignore the follow
|
||||||
|
else
|
||||||
|
|
||||||
# Ractor.select(*ractors) receives a values from a ractors.
|
# Ractor.select(*ractors) receives a values from a ractors.
|
||||||
# It is similar to select(2) and Go's select syntax.
|
# It is similar to select(2) and Go's select syntax.
|
||||||
|
@ -519,3 +521,4 @@ assert_equal 'nil', %q{
|
||||||
r.name.inspect
|
r.name.inspect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
end # if !ENV['GITHUB_WORKFLOW']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue