mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
1253982577
Reported by https://hackerone.com/haquaman
21 lines
306 B
Ruby
21 lines
306 B
Ruby
##
|
|
# Codegen tests
|
|
|
|
assert('codegen absorbs arguments to redo and retry if they are the argument of a call') do
|
|
assert_nothing_raised do
|
|
a=*"1", case nil
|
|
when 1
|
|
redo |
|
|
1
|
|
end
|
|
end
|
|
|
|
assert_nothing_raised do
|
|
a=*"1", case nil
|
|
when 1
|
|
retry |
|
|
1
|
|
end
|
|
end
|
|
end
|