Project

General

Profile

« Previous | Next » 

Revision 1474acff

Added by nobu (Nobuyoshi Nakada) almost 7 years ago

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e