Skip to content

Conversation

chrisseaton
Copy link
Collaborator

@eregon eregon self-assigned this Dec 31, 2019
@eregon eregon added this to the 20.0.0 milestone Dec 31, 2019
@eregon eregon added the in-ci The PR is being tested in CI. Do not push new commits. label Dec 31, 2019
@eregon
Copy link
Member

eregon commented Dec 31, 2019

This should have a spec to make sure we don't regress, I'll add one.

@eregon
Copy link
Member

eregon commented Dec 31, 2019

There is a spec in https://github.com/oracle/truffleruby/pull/1870/files, I'll cherry-pick it in this PR.

@@ -947,6 +947,10 @@ def rb_funcall_with_block(recv, meth, args, block)
recv.public_send(meth, *args, &block)
end

def rb_respond_to(object, name)
object.respond_to?(name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is out of scope for this PR but I thought I'd mention that rb_respond_to may have slightly different behavior:
https://github.com/ruby/ruby/blob/650c45dcd70e791747c4b9084c100cb895e718cb/vm_method.c#L2036-L2050

than obj_respond_to:
https://github.com/ruby/ruby/blob/650c45dcd70e791747c4b9084c100cb895e718cb/vm_method.c#L2074

graalvmbot pushed a commit that referenced this pull request Jan 3, 2020
@graalvmbot graalvmbot merged commit aae2a4f into oracle:master Jan 3, 2020
@chrisseaton chrisseaton deleted the respond-to-primitives branch January 3, 2020 16:17
@chrisseaton chrisseaton added the shopify Pull requests from Shopify label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-ci The PR is being tested in CI. Do not push new commits. oca-signed shopify Pull requests from Shopify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants