MCPcopy Index your code
hub / github.com/nodejs/node / loadSourceMap

Method loadSourceMap

deps/v8/tools/tickprocessor.mjs:699–708  ·  view source on GitHub ↗
(sourceMap)

Source from the content-addressed store, hash-verified

697 }
698
699 loadSourceMap(sourceMap) {
700 if (!sourceMap) return null;
701 // Overwrite the load function to load scripts synchronously.
702 WebInspector.SourceMap.load = (sourceMapURL) => {
703 const content = d8.file.read(sourceMapURL);
704 const sourceMapObject = JSON.parse(content);
705 return new SourceMap(sourceMapURL, sourceMapObject);
706 };
707 return WebInspector.SourceMap.load(sourceMap);
708 }
709
710 static VmStates = {
711 JS: 0,

Callers 1

constructorMethod · 0.95

Calls 3

parseMethod · 0.65
readMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected