summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2024-01-25 12:44:13 -0800
committerJeremy Evans <code@jeremyevans.net>2024-01-25 20:43:42 -0800
commit771a2f039b9a059a73e8f111d1d46590fa697f63 (patch)
tree339eb0bb6a548ead6afcfb5e039f1471307662df /include/ruby/internal
parent395a240b7c1daa058f590893ca8d8f6d28866abf (diff)
Fix incorrect use of VM_CALL_KW_SPLAT_MUT in zsuper with keyword splat
For zsuper calls with a keyword splat but no actual keywords, the keyword splat is passed directly, so it cannot be mutable, because if the callee accepts a keyword splat, changes to the keyword splat by the callee would be reflected in the caller. While here, simplify the logic when the method supports literal keywords. I don't think it is possible for a method with has_kw param flags to not have keywords, so add an assertion for that, and set VM_CALL_KW_SPLAT_MUT in a single place.
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions