Skip to content

Commit

Permalink
Why do we have 2 ipls of args?
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Mar 8, 2015
1 parent c7276b5 commit 089deb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby/stdlib/jruby/ext.rb
Expand Up @@ -59,9 +59,9 @@ def args
when MethodArgs2
return Helpers.parameter_list_to_parameters(JRuby.runtime, method.parameter_list, true)
when IRMethodArgs
arg_desc = method.parameter_list
for a in arg_desc
args_ary << (a[1] == "" ? [a[0].to_sym] : [a[0].to_sym, a[1].to_sym])
a = method.parameter_list
(0...(a.size)).step(2) do |i|
args_ary << (a[i+1] == "" ? [a[i].to_sym] : [a[i].to_sym, a[i+1].to_sym])
end
when MethodArgs
args_node = method.args_node
Expand Down

0 comments on commit 089deb6

Please sign in to comment.