diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 02:43:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 02:43:45 +0000 |
commit | 491b3fcbb93cd305924d8a7e6f07eb88a0272002 (patch) | |
tree | a76033903984e86f0091bf40ccf5579f01d73d44 /test/ruby/test_syntax.rb | |
parent | 8327c80cff934983e3be48942413ce4974be7e2e (diff) | |
download | ruby-491b3fcbb93cd305924d8a7e6f07eb88a0272002.tar.gz |
compile.c: restore stack at return
* compile.c (iseq_compile_each0): restore the stack depth after
return to the previous depth, to fix the stack depth at
returning from rescue iseq. [ruby-core:82108] [Bug #13755]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index c4d3d553be..5f0a236619 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -986,6 +986,7 @@ eom raise((return; "should not raise")) begin raise; ensure return; end; self begin raise; ensure return; end and self + nil&defined?0--begin e=no_method_error(); return; 0;end end; all_assertions(feature4840) do |a| code.each_line do |s| |