Skip to content

Commit

Permalink
Fix def compilation of splat parameter with reserved name
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 29, 2013
1 parent e6144f8 commit 7b1eac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/def.rb
Expand Up @@ -57,7 +57,7 @@ def compile

add_temp 'self = this'

line "#{splat} = $slice.call(arguments, #{argc});" if splat
line "#{variable(splat)} = $slice.call(arguments, #{argc});" if splat

opt[1..-1].each do |o|
next if o[2][2] == :undefined
Expand Down

0 comments on commit 7b1eac5

Please sign in to comment.