-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
Calling a method with multiple unknown keywords arguments in CRuby results in an Argument Error listing all unknown keywords.
In JRuby only the first unknown keyword is present in the error message.
Example
def foo(bar: 'baz'); end
foo(blah: nil, blah2: nil)Expected Behavior
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
test.rb:1:in `foo': unknown keywords: blah, blah2 (ArgumentError)
from test.rb:2:in `<main>'
Actual Behavior
jruby 9.1.9.0-SNAPSHOT (2.3.3) 2017-03-21 e7bcde5 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 [darwin-x86_64]
ArgumentError: unknown keyword: blah
foo at test.rb:2
<main> at test.rb:2
jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 [darwin-x86_64]
ArgumentError: unknown keyword: blah
foo at test.rb:2
<main> at test.rb:2
Reactions are currently unavailable