aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_defined.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-04-23 02:16:12 +0900
committerKoichi Sasada <ko1@atdot.net>2020-04-23 02:21:38 +0900
commit8119bcbfc04772fe4012b5ed396a68f02e312316 (patch)
treeb3fc2b8edc8532f4a634de3e2321cf060228ec27 /test/ruby/test_defined.rb
parent492e8599c60ed22b940aac40f8907fd58f1a879b (diff)
downloadruby-8119bcbfc04772fe4012b5ed396a68f02e312316.tar.gz
rb_method_entry() returns valid me.
search_method() can return invalid method, but vm_defined() checks it as valid method entry. This is why defined?(foo) if foo is undef'ed. To solve this problem, check invalidation and return NULL. [Bug #16669] https://twitter.com/kamipo/status/1252881930103558144 Tests will be merged by nobu soon.
Diffstat (limited to 'test/ruby/test_defined.rb')
0 files changed, 0 insertions, 0 deletions