diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-18 07:02:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-18 07:02:35 +0000 |
commit | cd3f980ea2652b169bbeede8b9135066ac656978 (patch) | |
tree | a78a22976b666bcd085b8143a8f90803f945e7f4 /compile.c | |
parent | 0316582ebcd400aefd80773997f56943527fa943 (diff) | |
download | ruby-cd3f980ea2652b169bbeede8b9135066ac656978.tar.gz |
* compile.c (setup_args), vm.c (invoke_block_from_c),
vm_insnhelper.c (caller_setup_args): fix of r30241. lambda block
shoud check argument number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2899,6 +2899,7 @@ setup_args(rb_iseq_t *iseq, LINK_ANCHOR *args, NODE *argn, VALUE *flag, VALUE *b if (block && nd_type(argn->nd_body) == NODE_LAMBDA) { NODE *lambda = argn->nd_body; *block = NEW_CHILD_ISEQVAL(lambda->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK, nd_line(lambda)); + *flag |= VM_CALL_BLOCK_LAMBDA_BIT; } else { COMPILE(arg_block, "block", argn->nd_body); |