Skip to content

Commit

Permalink
Fix for reserved js keywords to be used as block names in methods
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 26, 2013
1 parent 2295674 commit 89296d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/def.rb
Expand Up @@ -20,7 +20,7 @@ def compile

# block name (&block)
if args.last.to_s.start_with? '&'
block_name = args.pop.to_s[1..-1].to_sym
block_name = variable(args.pop.to_s[1..-1]).to_sym
argc -= 1
end

Expand Down

0 comments on commit 89296d5

Please sign in to comment.