MCPcopy Index your code
hub / github.com/evanw/node-source-map-support / createMultiLineSourceMapWithSourcesContent

Function createMultiLineSourceMapWithSourcesContent

test.js:72–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function createMultiLineSourceMapWithSourcesContent() {
73 var sourceMap = createEmptySourceMap();
74 var original = new Array(1001).join('\n');
75 for (var i = 1; i <= 100; i++) {
76 sourceMap.addMapping({
77 generated: { line: i, column: 0 },
78 original: { line: 1000 + i, column: 4 },
79 source: 'original.js'
80 });
81 original += ' line ' + i + '\n';
82 }
83 sourceMap.setSourceContent('original.js', original);
84 return sourceMap;
85}
86
87function compareStackTrace(sourceMap, source, expected) {
88 // Check once with a separate source map

Callers 1

test.jsFile · 0.85

Calls 1

createEmptySourceMapFunction · 0.85

Tested by

no test coverage detected