Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Passing nil as the value of a keyword argument causes JRuby to act as if there were no such keyword argument #1047
The following simple program demonstrates the problem:
def test(foo: 10) foo end test(foo: nil)
The cause appears to be the conditional at: https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/ast/ArgsNode.java#L488
This code needs to distinguish between the absence of a keyword value and an explicitly provided nil. I should be able to provide a patch, I think.