1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* proc.c (proc_binding): allow proc from method. [ruby-core:25589]

* vm.c (collect_local_variables_in_env): block iseq can be NULL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-21 08:12:12 +00:00
parent 3a7c1e25c4
commit f331b5584e
4 changed files with 31 additions and 13 deletions

View file

@ -144,6 +144,7 @@ class TestProc < Test::Unit::TestCase
def test_method_to_proc
b = block()
assert_equal "OK", b.call
assert_instance_of(Binding, b.binding, '[ruby-core:25589]')
end
def test_curry