Unverified Commit bfa0518e authored by yann300's avatar yann300 Committed by GitHub

Update sourceMappingDecoder.js

parent 7481a071
...@@ -114,6 +114,8 @@ tape('SourceMappingDecoder', function (t) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment