소스 검색

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

Dan Korostelev 9 년 전
부모
커밋
f140622162
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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 ','