diff options
| author | NARUSE, Yui <nurse@users.noreply.github.com> | 2024-03-20 20:05:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-20 11:05:31 +0000 |
| commit | 69cee6fee50f63cd52d59325dc3780a6fc4e5ae2 (patch) | |
| tree | cc915c5aff4daeb7874d28a4f669b54ceb96a9c4 /include/ruby/internal/encoding/string.h | |
| parent | 0793cbbfde261f4fc9bf7045594d62a21e391811 (diff) | |
merge revision(s) 771a2f039b9a059a73e8f111d1d46590fa697f63: [Backport #20213] (#10297)
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/encoding/string.h')
0 files changed, 0 insertions, 0 deletions
