MCPcopy Index your code
hub / github.com/mozilla/source-map / fromSourceMap

Method fromSourceMap

lib/source-map-consumer.js:285–287  ·  view source on GitHub ↗

* Create a BasicSourceMapConsumer from a SourceMapGenerator. * * @param SourceMapGenerator aSourceMap * The source map that will be consumed. * @param String aSourceMapURL * The URL at which the source map can be found (optional) * @returns BasicSourceMapConsumer

(aSourceMap, aSourceMapURL)

Source from the content-addressed store, hash-verified

283 * @returns BasicSourceMapConsumer
284 */
285 static fromSourceMap(aSourceMap, aSourceMapURL) {
286 return new BasicSourceMapConsumer(aSourceMap.toString());
287 }
288
289 get sources() {
290 return this._absoluteSources.toArray();

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected