summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-07-30 10:45:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-07-30 10:45:36 +0900
commit5b11d519d85fab458d93f636ec36d7197dc87dce (patch)
tree74adf3ab6820d042221cd54cd6c1c249f0932bb1
parent0da057d99ccffd2718bf8813c493ee3cce98c4ce (diff)
parentca49936468a5b2f10aa743ad2363ddcf29ff96d1 (diff)
downloadmruby-5b11d519d85fab458d93f636ec36d7197dc87dce.tar.gz
mruby-5b11d519d85fab458d93f636ec36d7197dc87dce.zip
Merge pull request #2901 from cremno/fix-ruby-bug-11380
pop cmdarg in lambda body; fix [ruby-bug#11380]
-rw-r--r--mrbgems/mruby-compiler/core/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index b057cac17..338f6b9e3 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -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