[ruby-cvs:63670] usa:r56505 (ruby_2_2): merge revision(s) 56252, 56254: [Backport #12743]

usa at ruby-lang.org usa at ruby-lang.org
Thu Oct 27 16:48:53 JST 2016


usa	2016-10-27 16:48:53 +0900 (Thu, 27 Oct 2016)

  New Revision: 56505

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

  Log:
    merge revision(s) 56252,56254: [Backport #12743]
    
    * eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with
      Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj)
      searches a tag with rb_vm_tag::tag == obj, throw(false) can
      accidentally find an unrelated tag which is not created by
      Kernel#catch.  [ruby-core:77229] [Bug #12743]
    
    * test/ruby/test_exception.rb (test_throw_false): Add a test case for
      this.

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/eval_intern.h
    branches/ruby_2_2/test/ruby/test_exception.rb
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list