[ruby-cvs:66670] nagachika:r59492 (ruby_2_4): merge revision(s) 59202: [Backport #13690]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Fri Aug 4 00:41:24 JST 2017


nagachika	2017-08-04 00:41:24 +0900 (Fri, 04 Aug 2017)

  New Revision: 59492

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

  Log:
    merge revision(s) 59202: [Backport #13690]
    
    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 directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/compile.c
    branches/ruby_2_4/test/ruby/test_exception.rb
    branches/ruby_2_4/test/ruby/test_syntax.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list