Skip to content

Commit

Permalink
Fix bug in generating methods in irb mode
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 24, 2013
1 parent 9947f12 commit a847aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/parser.rb
Expand Up @@ -848,7 +848,7 @@ def process_call(sexp, level)
@method_calls[meth.to_sym] = true

# we are trying to access a lvar in irb mode
if @irb_vars and @scope.top? and arglist == s(:arglist) and recv == nil
if @irb_vars and @scope.top? and arglist == s(:arglist) and recv == nil and iter == nil
return with_temp { |t|
lvar = meth.intern
lvar = "#{lvar}$" if RESERVED.include? lvar
Expand Down

0 comments on commit a847aed

Please sign in to comment.