Skip to content

Commit

Permalink
Allow gvars to be lhs of mass-assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 26, 2013
1 parent 428b89e commit 2295674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/masgn.rb
Expand Up @@ -40,7 +40,7 @@ def compile
end

part = child.dup
if child.type == :lasgn or child.type == :iasgn or child.type == :lvar
if child.type == :lasgn or child.type == :iasgn or child.type == :lvar or child.type == :gasgn
part << assign
elsif child.type == :call
part[2] = "#{part[2]}=".to_sym
Expand Down

0 comments on commit 2295674

Please sign in to comment.