[ruby-cvs:63606] nagachika:r56441 (ruby_2_3): merge revision(s) 56252, 56254: [Backport #12743]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Oct 18 03:07:09 JST 2016


nagachika	2016-10-18 03:07:08 +0900 (Tue, 18 Oct 2016)

  New Revision: 56441

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

  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_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/eval_intern.h
    branches/ruby_2_3/test/ruby/test_exception.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list