[ruby-cvs:66671] nagachika:r59493 (ruby_2_4): merge revision(s) 59183, 59184: [Backport #13682]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Fri Aug 4 01:00:34 JST 2017


nagachika	2017-08-04 01:00:34 +0900 (Fri, 04 Aug 2017)

  New Revision: 59493

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

  Log:
    merge revision(s) 59183,59184: [Backport #13682]
    
    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.
    fix return in toplevel ensure
    
    * compile.c (iseq_compile_each0): adjust stack after return in
      toplevel ensure, when the value is used.
      [ruby-core:81777] [Bug #13682]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/compile.c
    branches/ruby_2_4/test/ruby/test_eval.rb
    branches/ruby_2_4/test/ruby/test_syntax.rb
    branches/ruby_2_4/version.h
    branches/ruby_2_4/vm_insnhelper.c


More information about the ruby-cvs mailing list