diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-26 09:07:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-26 09:07:28 +0000 |
commit | cdde29b924f3f310382d059938b0c94e209fced7 (patch) | |
tree | 789b492f0f5c6dfa2132f3baea1fd8388840bc46 /eval.c | |
parent | 9eee63661b39bb2832af4878922ac57674a2a4a7 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |