mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02:00
* vm_eval.c (yield_under): yields self the same as 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ba0fe5fd3
commit
9071538179
3 changed files with 5 additions and 6 deletions
|
@ -238,7 +238,7 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
assert("foo", Other.class_eval_test)
|
||||
|
||||
assert_equal([], Other.class_eval { |*args| args })
|
||||
assert_equal([Other], Other.class_eval { |*args| args })
|
||||
end
|
||||
|
||||
def test_const_defined?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue