Skip to content

Commit

Permalink
Merge pull request #8406 from Rob--W/babel-cache-error-handling
Browse files Browse the repository at this point in the history
Gracefully ignore transaction failure in plugin-babel-cached
  • Loading branch information
timvandermeij authored May 14, 2017
2 parents 63597cc + b3bd2f3 commit 08f8b68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions external/systemjs/plugin-babel-cached.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) {
tx.oncomplete = function () {
resolve();
};
tx.onerror = function () {
resolve();
};
});
});
}
Expand All @@ -74,6 +77,9 @@ function loadCache(address, hashCode) {
format: found.format,
} : null);
};
tx.onerror = function () {
resolve(null);
};
});
});
}
Expand Down

0 comments on commit 08f8b68

Please sign in to comment.