diff options
author | Jeremy Evans <[email protected]> | 2019-09-29 13:15:04 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-29 16:28:52 -0700 |
commit | 58dfea0c8de29cbad35621847c04372b779c5f5d (patch) | |
tree | 10f03180414b703f8cddb7c18138f76e46a29712 /vm.c | |
parent | 59060aadea28d3a6cd0ebbcc17c10a3628e6e867 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2505
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions