Skip to content

Commit

Permalink
Fix bug in generated code for deconstructed block args
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 26, 2013
1 parent 0c883ef commit 428b89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/iter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def compile
elsif arg.type == :array
arg[1..-1].each_with_index do |_arg, _idx|
_arg = variable(_arg[1])
push "#{_arg} = #{params[idx]}#{_idx};"
push "#{_arg} = #{params[idx]}[#{_idx}];"
end
else
raise "Bad block arg type"
Expand Down

0 comments on commit 428b89e

Please sign in to comment.