FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Check argument definedness in defined?(receiver.method(arg)) by sampokuokkanen · Pull Request #9460 · jruby/jruby · GitHub

/ jruby Public

Check argument definedness in defined?(receiver.method(arg)) - #9460

Open
sampokuokkanen wants to merge 1 commit into
jruby:masterfrom
sampokuokkanen:fix-undefined-argument
Open

Check argument definedness in defined?(receiver.method(arg))#9460
sampokuokkanen wants to merge 1 commit into
jruby:masterfrom
sampokuokkanen:fix-undefined-argument

Conversation

Copy link
Copy Markdown
Contributor

Mirrors the FCALLNODE path. Fixes test_defined_undefined_argument.

Sample code of the problem:

class Test
  def hello x
    puts "Hello #{x}"
  end
end

p defined? Test.new.hello(hello)

Before this fix: "method", now nil.

Mirrors the FCALLNODE path. Fixes test_defined_undefined_argument.
sampokuokkanen force-pushed the fix-undefined-argument branch from 7070d83 to 5f25bf0 Compare August 27, 2026 04:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL