OP_LAMBDA generation should honor VAL/NOVAL; fix
MODIFY
mrbgems/mruby-compiler/core/codegen.c
mrbgems/mruby-compiler/core/codegen.c
@@ -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));

OP_LAMBDA generation should honor VAL/NOVAL; fix #3580