mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c: skip keyword argument hash duplication in OP_ENTER
The keyword argument hash passed to a method is always freshly constructed at the call site - either by hash_new_from_regs() in OP_SEND for inline keyword pairs, or by OP_HASH/OP_HASHCAT for compiler-generated keyword arguments (including the **h splat case which creates OP_HASH(0)+OP_HASHCAT). Since no caller retains a reference to this hash, the mrb_hash_dup() was redundant. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Reference in New Issue
Block a user