[ruby-cvs:66361] nobu:r59183 (trunk): fix return in toplevel rescue/ensure

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jun 27 15:57:34 JST 2017


nobu	2017-06-27 15:57:34 +0900 (Tue, 27 Jun 2017)

  New Revision: 59183

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59183

  Log:
    fix return in toplevel rescue/ensure
    
    * compile.c (iseq_compile_each0): throw TAG_RETURN at return in
      toplevel rescue/ensure to adjust VM stack properly.
      [ruby-core:81777] [Bug #13682]
    
    * vm_insnhelper.c (vm_throw_start): allow return in toplevel
      rescue/ensure.

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_eval.rb
    trunk/test/ruby/test_syntax.rb
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list