Skip to content

Commit 2bd3ed4

Browse files
committedOct 1, 2014
1 parent 26e7760 commit 2bd3ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎stdlib/source_map/map.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def build_vlq_string
193193
sources_index = Hash[sources.each_with_index.to_a]
194194
names_index = Hash[names.each_with_index.to_a]
195195

196-
ary = (1..by_lines.keys.max).map do |line|
196+
ary = (1..(by_lines.keys.max || 1)).map do |line|
197197
generated_column = 0
198198

199199
(by_lines[line] || []).map do |mapping|

0 commit comments

Comments
 (0)
Please sign in to comment.