MCPcopy Create free account
hub / github.com/mozilla/source-map / actualMap

Function actualMap

test/test-source-map-generator.js:482–488  ·  view source on GitHub ↗
(aSourceMapPath)

Source from the content-addressed store, hash-verified

480 };
481
482 const actualMap = function (aSourceMapPath) {
483 const map = SourceMapGenerator.fromSourceMap(minifiedMap);
484 // Note that relying on `bundleMap.file` (which is simply 'bundle.js')
485 // instead of supplying the second parameter wouldn't work here.
486 map.applySourceMap(bundleMap, "../temp/bundle.js", aSourceMapPath);
487 return map.toJSON();
488 };
489
490 util.assertEqualMaps(
491 assert,

Callers 1

Calls 3

applySourceMapMethod · 0.80
toJSONMethod · 0.80
fromSourceMapMethod · 0.65

Tested by

no test coverage detected