Merge pull request #2901 from cremno/fix-ruby-bug-11380

pop cmdarg in lambda body; fix [ruby-bug#11380]
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-07-30 10:45:36 +09:00
+1
View File
@@ -2154,6 +2154,7 @@ primary : literal
$$ = new_lambda(p, $3, $5);
local_unnest(p);
p->cmdarg_stack = $<stack>4;
CMDARG_LEXPOP();
}
| keyword_if expr_value then
compstmt