Skip to content

Commit

Permalink
js_return sexps now inherit the line/column of their value
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 24, 2013
1 parent abf6f4d commit f31e33b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/opal/compiler.rb
Expand Up @@ -179,7 +179,6 @@ def in_while?
# and compiling it to fragments.
def process(sexp, level = :expr)
if handler = handlers[sexp.type]
#@line = sexp.line
return handler.new(sexp, level, self).compile_to_fragments
else
raise "Unsupported sexp: #{sexp.type}"
Expand Down Expand Up @@ -266,7 +265,7 @@ def returns(sexp)
sexp
else
s(:js_return, sexp).tap { |s|
#s.line = sexp.line
s.source = sexp.source
}
end
end
Expand Down

0 comments on commit f31e33b

Please sign in to comment.