We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected Behavior
2.6.4 :001 > [:foo].fill(nil,2,0) => [:foo, nil]
3.1.3 :001 > [:foo].fill(nil,2,0) => [:foo, nil]
Actual Behavior
jruby-9.3.9.0 :001 > [:foo].fill(nil,2,0) => [:foo]
jruby-9.4.1.0 :006 > [:foo].fill(nil,2,0) => [:foo]
The text was updated successfully, but these errors were encountered:
Fix Array#fill if start >= array.size
c372afc
If start >= array.size, array#fill should extends self with nil. Fixes jruby#7648
Fix Array#fill for edge case
603ff16
If start >= array.size and length = 0, array#fill should extends self with nil. Fixes jruby#7648
This is fixed by @k77ch7 but wow what a weird case! Did you run into this in real code?
Sorry, something went wrong.
@headius yes I did here https://github.com/neo4jrb/activegraph/blob/master/lib/active_graph/node/scope.rb#L80 Tried to refactor: query_params.fill(nil, query_params.length..proc.arity - 1) to simpler query_params.fill(nil, proc.arity, 0)
query_params.fill(nil, query_params.length..proc.arity - 1)
query_params.fill(nil, proc.arity, 0)
No branches or pull requests
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: