diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-10 08:24:11 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-10 08:24:11 +0000 |
commit | 9071538179bf318ffb6f112b40e4f4fd17704cec (patch) | |
tree | 136740bd57ba000735d9d74696d14e0b12705e5f /vm_eval.c | |
parent | 4ba0fe5fd3d12f9918cc84302239bf0e978844a2 (diff) |
* vm_eval.c (yield_under): yields self the same as 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1172,12 +1172,7 @@ yield_under(VALUE under, VALUE self, VALUE values) cref->flags |= NODE_FL_CREF_PUSHED_BY_EVAL; if (values == Qundef) { -#if 0 - /* The behavior of Ruby 1.8 */ return vm_yield_with_cref(th, 1, &self, cref); -#else - return vm_yield_with_cref(th, 0, 0, cref); -#endif } else { return vm_yield_with_cref(th, RARRAY_LENINT(values), RARRAY_PTR(values), cref); |