Skip to content

Commit

Permalink
[SourceMaps] Always increment line numbers when fragments have no bas…
Browse files Browse the repository at this point in the history
…e sexp
  • Loading branch information
adambeynon committed Sep 26, 2013
1 parent d885f24 commit a0e1a5a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/opal/source_map.rb
Expand Up @@ -24,11 +24,13 @@ def map
:source_col => 0,
:source => file
)

new_lines = fragment.code.count "\n"
line += new_lines
column = 0
end


new_lines = fragment.code.count "\n"
puts "[add] gen_line: #{line}, source_line: #{source_line} (adding: #{new_lines})"
line += new_lines
column = 0
end
end
end
Expand Down

0 comments on commit a0e1a5a

Please sign in to comment.