OP_LAMBDA generation should honor VAL/NOVAL; fix #3580

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-04-11 02:30:24 +09:00
parent db47ae5de5
commit fff4a4ed34
+2 -2
View File
@@ -1383,7 +1383,7 @@ codegen(codegen_scope *s, node *tree, int val)
break;
case NODE_LAMBDA:
{
if (val) {
int idx = lambda_body(s, tree, 1);
genop(s, MKOP_Abc(OP_LAMBDA, cursp(), idx, OP_L_LAMBDA));
@@ -1392,7 +1392,7 @@ codegen(codegen_scope *s, node *tree, int val)
break;
case NODE_BLOCK:
{
if (val) {
int idx = lambda_body(s, tree, 1);
genop(s, MKOP_Abc(OP_LAMBDA, cursp(), idx, OP_L_BLOCK));