removed jruby specific hack, fixed failing tests on jruby
This commit is contained in:
parent
38a19e8d3e
commit
6e5910285c
|
@ -39,12 +39,7 @@ class Pry
|
||||||
when arity == 0
|
when arity == 0
|
||||||
[]
|
[]
|
||||||
when arity > 0
|
when arity > 0
|
||||||
# another jruby hack
|
args.values_at *(0..(arity - 1)).to_a
|
||||||
if Pry::Helpers::BaseHelpers.jruby?
|
|
||||||
args[0..(arity - 1)]
|
|
||||||
else
|
|
||||||
args.values_at *(0..(arity - 1)).to_a
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue