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

Method with

source-map.d.ts:281–281  ·  view source on GitHub ↗

* Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl` * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async * function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait * for `f` to complete, call `destroy` on the consumer,

(
    rawSourceMap: RawSourceMap | RawIndexMap | string,
    sourceMapUrl: SourceMapUrl | null | undefined,
    callback: (
      consumer: BasicSourceMapConsumer | IndexedSourceMapConsumer
    ) => Promise<T> | T
  )

Source from the content-addressed store, hash-verified

279 * ```
280 */
281 with<T>(
282 rawSourceMap: RawSourceMap | RawIndexMap | string,
283 sourceMapUrl: SourceMapUrl | null | undefined,
284 callback: (

Callers 3

testMappingActionFunction · 0.65

Implementers 1

SourceMapConsumerlib/source-map-consumer.js

Calls

no outgoing calls

Tested by

no test coverage detected