File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 227227 * Creating SourceMapConsumers is expensive, so this wraps the creation of a
228228 * SourceMapConsumer in a per-instance cache.
229229 *
230- * @param sourceMappingURL = {String} URL to fetch source map from
231- * @param defaultSourceRoot = Default source root for source map if undefined
230+ * @param {String } sourceMappingURL = URL to fetch source map from
231+ * @param { String } defaultSourceRoot = Default source root for source map if undefined
232232 * @returns {Promise } that resolves a SourceMapConsumer
233233 */
234234 this . _getSourceMapConsumer = function _getSourceMapConsumer ( sourceMappingURL , defaultSourceRoot ) {
326326 sourceMappingURL = defaultSourceRoot + sourceMappingURL ;
327327 }
328328
329- return this . _getSourceMapConsumer ( sourceMappingURL , defaultSourceRoot ) . then ( function ( sourceMapConsumer ) {
330- return _extractLocationInfoFromSourceMapSource ( stackframe , sourceMapConsumer , sourceCache )
331- . then ( resolve ) [ 'catch' ] ( function ( ) {
332- resolve ( stackframe ) ;
329+ return this . _getSourceMapConsumer ( sourceMappingURL , defaultSourceRoot )
330+ . then ( function ( sourceMapConsumer ) {
331+ return _extractLocationInfoFromSourceMapSource ( stackframe , sourceMapConsumer , sourceCache )
332+ . then ( resolve ) [ 'catch' ] ( function ( ) {
333+ resolve ( stackframe ) ;
334+ } ) ;
333335 } ) ;
334- } ) ;
335336 } . bind ( this ) , reject ) [ 'catch' ] ( reject ) ;
336337 } . bind ( this ) ) ;
337338 } ;
You can’t perform that action at this time.
0 commit comments