[ruby-cvs:66380] nobu:r59202 (trunk): compile.c: disallow next in once

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Jun 29 13:01:30 JST 2017


nobu	2017-06-29 13:01:30 +0900 (Thu, 29 Jun 2017)

  New Revision: 59202

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

  Log:
    compile.c: disallow next in once
    
    * compile.c (iseq_compile_each0): turned dregx context in "once"
      into "guarded" type from "block" type, to disallow `next`,
      `break`, `redo` as well as outside "once".
      [ruby-core:81805] [Bug #13690]

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


More information about the ruby-cvs mailing list