Skip to content

Commit 5d1b54b

Browse files
committed
Reject correct promise in _getSourceMapConsumer.
1 parent 170bb4a commit 5d1b54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stacktrace-gps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
if (this.sourceMapConsumerCache[sourceMappingURL]) {
232232
resolve(this.sourceMapConsumerCache[sourceMappingURL]);
233233
} else {
234-
var sourceMapConsumerPromise = new Promise(function(resolve) {
234+
var sourceMapConsumerPromise = new Promise(function(resolve, reject) {
235235
return this._get(sourceMappingURL).then(function(sourceMapSource) {
236236
if (typeof sourceMapSource === 'string') {
237237
sourceMapSource = _parseJson(sourceMapSource.replace(/^\)\]\}'/, ''));

0 commit comments

Comments
 (0)