Browse Source

Merge pull request #8406 from Rob--W/babel-cache-error-handling

Gracefully ignore transaction failure in plugin-babel-cached
Tim van der Meij 8 years ago committed by GitHub
parent
commit
08f8b68f12
  1. 6
      external/systemjs/plugin-babel-cached.js

6
external/systemjs/plugin-babel-cached.js vendored

@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) { @@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) {
tx.oncomplete = function () {
resolve();
};
tx.onerror = function () {
resolve();
};
});
});
}
@ -74,6 +77,9 @@ function loadCache(address, hashCode) { @@ -74,6 +77,9 @@ function loadCache(address, hashCode) {
format: found.format,
} : null);
};
tx.onerror = function () {
resolve(null);
};
});
});
}

Loading…
Cancel
Save