diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-29 13:15:04 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-29 16:28:52 -0700 |
commit | 58dfea0c8de29cbad35621847c04372b779c5f5d (patch) | |
tree | 10f03180414b703f8cddb7c18138f76e46a29712 /test/logger | |
parent | 59060aadea28d3a6cd0ebbcc17c10a3628e6e867 (diff) | |
download | ruby-58dfea0c8de29cbad35621847c04372b779c5f5d.tar.gz |
Make direct calls to rb_{obj_instance,mod_module}_{eval,exec} not pass keywords
In general RB_PASS_CALLED_KEYWORDS should only be set if we are
sure the arguments passed come directly from Ruby. For direct calls
to these C functions, we should not assume that keywords are passed.
Add static *_internal versions of these functions that
Kernel#instance_{eval,exec} and Module#{class,module}_{eval,exec}
call that set RB_PASS_CALLED_KEYWORDS.
Also, change struct.c back to calling rb_mod_module_eval, now that
the call is safe.
Diffstat (limited to 'test/logger')
0 files changed, 0 insertions, 0 deletions