diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index ca6e43ee13..4eddd0bbe2 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -480,8 +480,10 @@ end.join def test_machine_stackoverflow bug9109 = '[ruby-dev:47804] [Bug #9109]' assert_separately([], <<-SRC) - h = {a: ->{h[:a].call}} - assert_raise(SystemStackError, #{bug9109.dump}) {h[:a].call} + assert_raise(SystemStackError, #{bug9109.dump}) { + h = {a: ->{h[:a].call}} + h[:a].call + } SRC end |