diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-05 16:27:26 +0900 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-05 17:47:12 -0700 |
| commit | c5555e2eb8631e649cc9377f0bd75ebc2788cc7d (patch) | |
| tree | 695cab1eadab4892af702bcba161f3f56bdf055f /spec/ruby/core/array/shared/replace.rb | |
| parent | a23ddf7ff58ec77548d2ecd7f9f202aa3eff9fc7 (diff) | |
CALLER_SETUP_ARG removes an empty keyword hash from argv
...only when a "remove_empty_keyword_hash" flag is specified.
After CALLER_SETUP_ARG is called, `ci->flag & VM_CALL_KW_SPLAT` must not
be used. Instead. use `calling->kw_splat`. This is because
CALLER_SETUP_ARG may modify argv and update `calling->kw_splat`, and
`ci->flag & VM_CALL_KW_SPLAT` may be inconsistent with the result.
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
0 files changed, 0 insertions, 0 deletions
