dist/watJSON.browser.js
/**
	   * A BasicSourceMapConsumer instance represents a parsed source map which we can
	   * query for information about the original file positions by giving it a file
	   * position in the generated source.
	   *
	   * The only parameter is the raw source map (either as a JSON string, or
	   * already parsed to an object). According to the spec, source maps have the
	   * following attributes:
	   *
	   *   - version: Which version of the source map spec this map is following.
	   *   - sources: An array of URLs to the original source files.
	   *   - names: An array of identifiers which can be referrenced by individual mappings.
	   *   - sourceRoot: Optional. The URL root from which all sources are relative.
	   *   - sourcesContent: Optional. An array of contents of the original source files.
	   *   - mappings: A string of base64 VLQs which contain the actual mappings.
	   *   - file: Optional. The generated file this source map is associated with.
	   *
	   * Here is an example source map, taken from the source map spec[0]:
	   *
	   *     {
	   *       version : 3,
	   *       file: "out.js",
	   *       sourceRoot : "",
	   *       sources: ["foo.js", "bar.js"],
	   *       names: ["src", "maps", "are", "fun"],
	   *       mappings: "AA,AB;;ABCDE;"
	   *     }
	   *
	   * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
	   */
A BasicSourceMapConsumer instance represents a parsed source map which we can
query for information about the original file positions by giving it a file
position in the generated source.

The only parameter is the raw source map (either as a JSON string, or
already parsed to an object). According to the spec, source maps have the
following attributes.

- version: Which version of the source map spec this map is following.
- sources: An array of URLs to the original source files.
- names: An array of identifiers which can be referrenced by individual mappings.
- sourceRoot: Optional. The URL root from which all sources are relative.
- sourcesContent: Optional. An array of contents of the original source files.
- mappings: A string of base64 VLQs which contain the actual mappings.
- file: Optional. The generated file this source map is associated with.

Here is an example source map, taken from the source map spec[0].




A BasicSourceMapConsumer instance represents a parsed source map which we can query for information about the original file positions by giving it a file position in the generated source . The only parameter is the raw source map ( either as a JSON string or already parsed to an object ) . According to the spec source maps have the following attributes . - version : Which version of the source map spec this map is following . - sources : An array of URLs to the original source files . - names : An array of identifiers which can be referrenced by individual mappings . - sourceRoot : Optional . The URL root from which all sources are relative . - sourcesContent : Optional . An array of contents of the original source files . - mappings : A string of base64 VLQs which contain the actual mappings . - file : Optional . The generated file this source map is associated with . Here is an example source map taken from the source map spec [ 0 ] .
function BasicSourceMapConsumer(aSourceMap) {
	    var sourceMap = aSourceMap;
	    if (typeof aSourceMap === 'string') {
	      sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
	    }
	    var version = util.getArg(sourceMap, 'version');
	    var sources = util.getArg(sourceMap, 'sources');
	    var names = util.getArg(sourceMap, 'names', []);
	    var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
	    var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
	    var mappings = util.getArg(sourceMap, 'mappings');
	    var file = util.getArg(sourceMap, 'file', null);
	    if (version != this._version) {
	      throw new Error('Unsupported version: ' + version);
	    }
	    sources = sources.map(util.normalize);
	    this._names = ArraySet.fromArray(names, true);
	    this._sources = ArraySet.fromArray(sources, true);
	    this.sourceRoot = sourceRoot;
	    this.sourcesContent = sourcesContent;
	    this._mappings = mappings;
	    this.file = file;
	  }
function BasicSourceMapConsumer ( aSourceMap ) { var sourceMap = aSourceMap ; if ( typeof aSourceMap === 'string' ) { sourceMap = JSON . parse ( aSourceMap . replace ( / ^\)\]\}' / , '' ) ) ; } var version = util . getArg ( sourceMap , 'version' ) ; var sources = util . getArg ( sourceMap , 'sources' ) ; var names = util . getArg ( sourceMap , 'names' , [ ] ) ; var sourceRoot = util . getArg ( sourceMap , 'sourceRoot' , null ) ; var sourcesContent = util . getArg ( sourceMap , 'sourcesContent' , null ) ; var mappings = util . getArg ( sourceMap , 'mappings' ) ; var file = util . getArg ( sourceMap , 'file' , null ) ; if ( version != this . _version ) { throw new Error ( 'Unsupported version: ' + version ) ; } sources = sources . map ( util . normalize ) ; this . _names = ArraySet . fromArray ( names , true ) ; this . _sources = ArraySet . fromArray ( sources , true ) ; this . sourceRoot = sourceRoot ; this . sourcesContent = sourcesContent ; this . _mappings = mappings ; this . file = file ; }
A BasicSourceMapConsumer instance represents a parsed source map which we can
 query for information about the original file positions by giving it a file
 position in the generated source.
A BasicSourceMapConsumer instance represents a parsed source map which we can query for information about the original file positions by giving it a file position in the generated source .
// Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which // requires the array) to play nice here. // Once again, Sass deviates from the spec and supplies the version as a // string rather than a number, so we use loose equality checking here. // Some source maps produce relative source paths like "./foo.js" instead of // "foo.js".  Normalize these first so that future comparisons will succeed. // See bugzil.la/1090768. // Pass `true` below to allow duplicate names and sources. While source maps // are intended to be compressed and deduplicated, the TypeScript compiler // sometimes generates source maps with duplicates in them. See Github issue // #72 and bugzil.la/889492.