mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
* variable.c (rb_mod_remove_const): fix segv caused by r38558.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e81553a1e
commit
109d71ac71
3 changed files with 10 additions and 1 deletions
|
@ -1591,4 +1591,9 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
assert_equal("", stderr)
|
||||
end
|
||||
|
||||
def test_remove_const
|
||||
m = Module.new
|
||||
assert_raise(NameError){ m.instance_eval { remove_const(:__FOO__) } }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue