mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
af3817efb9
Migrated both NODE_BLOCK and NODE_LAMBDA to use variable-sized nodes exclusively while fixing compatibility issues with mixed node structures. Parser changes: - new_block() and new_lambda() always create variable-sized nodes - temporarily disabled var_nodes_enabled to avoid mixed node structure issues Codegen changes: - removed codegen_block() and codegen_lambda() functions - removed traditional NODE_BLOCK and NODE_LAMBDA cases from switch statement - inlined logic into gen_block_var() and gen_lambda_var() using stack-allocated structures - fixed lambda_body() to handle both variable-sized and cons-list NODE_ARGS_TAIL - restored OP_KEYEND generation logic for proper keyword argument validation All tests pass with improved memory efficiency through direct struct access. Co-authored-by: Claude <noreply@anthropic.com>