summaryrefslogtreecommitdiff
path: root/prism_compile.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-07-18 13:46:52 -0400
committerKevin Newton <[email protected]>2024-07-18 15:30:45 -0400
commit1fd1fb2aa5daa604464df94735dd234ecb170b7b ()
tree08b511c6b4f37f2fe0c61c32749bd6eb3d921e42 /prism_compile.c
parent53710be557105826440fc705415af37856e19db5 (diff)
[PRISM] Use KW_SPLAT_MUT when possible for method calls
Notes: Merged: https://.com/ruby/ruby/pull/11200
-rw-r--r--prism_compile.c8
1 files changed, 8 insertions, 0 deletions
@@ -1562,6 +1562,14 @@ pm_setup_args_core(const pm_arguments_node_t *arguments_node, const pm_node_t *b
if (has_keyword_splat || has_splat) {
*flags |= VM_CALL_KW_SPLAT;
has_keyword_splat = true;
pm_compile_hash_elements(iseq, argument, elements, true, ret, scope_node);
}
else {