Fix some specs regarding method visibility#6712
Conversation
9a5a81d to
1ba40bb
Compare
enebo
left a comment
There was a problem hiding this comment.
I think the functional part of this PR is that if clazz is a singleton it will return public which does seems to match vm_define_method in MRI. This PR with only the singleton check of the if statement may be what you want (although we should be able to see some test/spec pass too as a result).
I am not sure what NO_SUPER_CLASS and NOT_IMPLEMENTED checks are for? They are not doing what you expect but if you explain what you think they are doing I can maybe help you do the right thing. NO_SUPER_CLASS.toString() -> "NO_SUPER_CLASS" which would only have an effect if your Ruby method was named that.
You can ping me or @headius on matrix to talk about this. Deciphering our codebase and MRI's codebase can be tricky at times :)
f1bc12c to
aba9d7c
Compare
aba9d7c to
727d620
Compare
727d620 to
2632240
Compare
performNormalMethodChecksAndDetermineVisibility with MRI impl…
Untag some tests regarding method visibility. Also closes #596.