Browse Source

[js] don't substract 1 from the column number for source-maps, since our column names are already zero-based

Dan Korostelev 9 năm trước cách đây
mục cha
commit
f140622162
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/generators/genjs.ml

+ 0 - 1
src/generators/genjs.ml

@@ -182,7 +182,6 @@ let add_mapping ctx e =
 	in
 	let line, col = Lexer.find_pos pos in
 	let line = line - 1 in
-	let col = col - 1 in
 	if smap.source_last_file != file || smap.source_last_line != line || smap.source_last_col != col then begin
 		if smap.print_comma then
 			Rbuffer.add_char smap.mappings ','