Project

General

Profile

Backport #8448

backport r40915 (fix a SEGV when Module#private_constant with no arg)

Added by nagachika (Tomoyuki Chikanaga) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:55157]

Associated revisions

Revision 205b5c9c
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40915: [Backport #8448]

    * variable.c (set_const_visibility): use rb_frame_this_func() instead
      of rb_frame_callee() for getting the name of the called method

    * test/ruby/test_module.rb: add test for private_constant with no args

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

Revision 41064
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40915: [Backport #8448]

* variable.c (set_const_visibility): use rb_frame_this_func() instead
  of rb_frame_callee() for getting the name of the called method

* test/ruby/test_module.rb: add test for private_constant with no args

History

#1

Updated by nagachika (Tomoyuki Chikanaga) over 6 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r41064.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40915: [Backport #8448]

* variable.c (set_const_visibility): use rb_frame_this_func() instead
  of rb_frame_callee() for getting the name of the called method

* test/ruby/test_module.rb: add test for private_constant with no args

Also available in: Atom PDF