summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-26 09:07:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-26 09:07:28 +0000
commitcdde29b924f3f310382d059938b0c94e209fced7 (patch)
tree789b492f0f5c6dfa2132f3baea1fd8388840bc46 /eval.c
parent9eee63661b39bb2832af4878922ac57674a2a4a7 (diff)
String#dump
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 3a68e48a36..1fe013ffe7 100644
--- a/eval.c
+++ b/eval.c
@@ -4708,6 +4708,9 @@ block_pass(self, node)
volatile int orphan;
volatile int safe = safe_level;
+ if (NIL_P(block)) {
+ return rb_eval(self, node->nd_iter);
+ }
if (obj_is_kind_of(block, cMethod)) {
block = method_proc(block);
}