diff --git a/packages/core/src/ground.js b/packages/core/src/ground.js index c16307f..bd4afb9 100644 --- a/packages/core/src/ground.js +++ b/packages/core/src/ground.js @@ -18,7 +18,13 @@ Ground.prototype = new Dataspace(null); Ground._resolved = Promise.resolve(); Ground.laterCall = function (thunk) { - Ground._resolved.then(thunk); + Ground._resolved.then(() => { + try { + thunk(); + } catch (e) { + console.error("SYNDICATE/JS INTERNAL ERROR", e); + } + }); }; Ground.prototype.backgroundTask = function (k) {