Skip to content

Commit f31e33b

Browse files
committedNov 24, 2013
js_return sexps now inherit the line/column of their value
1 parent abf6f4d commit f31e33b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/opal/compiler.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def in_while?
179179
# and compiling it to fragments.
180180
def process(sexp, level = :expr)
181181
if handler = handlers[sexp.type]
182-
#@line = sexp.line
183182
return handler.new(sexp, level, self).compile_to_fragments
184183
else
185184
raise "Unsupported sexp: #{sexp.type}"
@@ -266,7 +265,7 @@ def returns(sexp)
266265
sexp
267266
else
268267
s(:js_return, sexp).tap { |s|
269-
#s.line = sexp.line
268+
s.source = sexp.source
270269
}
271270
end
272271
end

0 commit comments

Comments
 (0)
Please sign in to comment.