mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
remove RUBY_METHOD_FUNC use
This was causing deprecation warnings from ANYARGS usage and no longer necessary since Ruby 1.8+, at least. It's not used by any of the core *.c nor ext/ extensions in the C ruby source tree, and I've rarely seen it used in 3rd-party C extensions.
This commit is contained in:
parent
e9b2adae10
commit
7a16ef8120
1 changed files with 2 additions and 2 deletions
|
@ -1251,8 +1251,8 @@ gvl_ruby_callback(void* data) {
|
|||
VALUE callback_data_value = (VALUE)&callback_data;
|
||||
|
||||
// TODO: use rb_vrescue2 in Ruby 2.7 and above
|
||||
result = rb_rescue2(RUBY_METHOD_FUNC(protected_callback), callback_data_value,
|
||||
RUBY_METHOD_FUNC(rescue_callback), callback_data_value, rb_eException, (VALUE)0);
|
||||
result = rb_rescue2(protected_callback, callback_data_value,
|
||||
rescue_callback, callback_data_value, rb_eException, (VALUE)0);
|
||||
|
||||
if(callback_data.failed) {
|
||||
rb_iv_set(parent, "@current_exception", result);
|
||||
|
|
Loading…
Add table
Reference in a new issue