mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (proc_dup): proc->block.proc should be self.
* bootstraptest/test_knownbug.rb, test_method.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25ff7ef4c6
commit
88f570d9ae
5 changed files with 27 additions and 20 deletions
3
proc.c
3
proc.c
|
@ -90,10 +90,11 @@ proc_dup(VALUE self)
|
|||
GetProcPtr(procval, dst);
|
||||
|
||||
dst->block = src->block;
|
||||
dst->block.proc = procval;
|
||||
dst->envval = src->envval;
|
||||
dst->safe_level = dst->safe_level;
|
||||
dst->special_cref_stack = src->special_cref_stack;
|
||||
|
||||
|
||||
return procval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue