aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 59de71dd61..abf26a68bb 100644
--- a/proc.c
+++ b/proc.c
@@ -277,6 +277,10 @@ proc_new(VALUE klass, int is_lambda)
}
}
+ if (block->proc) {
+ return block->proc;
+ }
+
procval = vm_make_proc(th, cfp, block);
if (is_lambda) {