Update sourceMappingDecoder.js

pull/5370/head
yann300 4 years ago committed by GitHub
parent 228ecc213f
commit f122e31238
  1. 2
      remix-lib/test/sourceMappingDecoder.js

@ -114,6 +114,8 @@ tape('SourceMappingDecoder', function (t) {
file: 4, file: 4,
jump: '-' jump: '-'
} }
// case: 'file' is not yet assigned, while processing the srcmap (reverse looping) to find 'start', 'length' (etc..), we tumble on -1 for the file.
// in that case the step has to be discarded
result = sourceMappingDecoder.convertOffsetToLineColumn(res, linesbreak) result = sourceMappingDecoder.convertOffsetToLineColumn(res, linesbreak)
st.equal(result.start.line, 7) st.equal(result.start.line, 7)
st.equal(result.start.column, 12) st.equal(result.start.column, 12)

Loading…
Cancel
Save