From b3bd2f3b38b404dbf3e7d56cf95a9f863282f0cd Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Sun, 14 May 2017 16:01:32 +0200 Subject: [PATCH] Gracefully ignore transaction failure in plugin-babel-cached --- external/systemjs/plugin-babel-cached.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/external/systemjs/plugin-babel-cached.js b/external/systemjs/plugin-babel-cached.js index 3fca8af3d..0d21d6b75 100644 --- a/external/systemjs/plugin-babel-cached.js +++ b/external/systemjs/plugin-babel-cached.js @@ -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) { format: found.format, } : null); }; + tx.onerror = function () { + resolve(null); + }; }); }); }