Front end of the Slack clone application.

tryCatch.js 422B

12345678910111213141516171819
  1. "use strict";
  2. var errorObject_1 = require('./errorObject');
  3. var tryCatchTarget;
  4. function tryCatcher() {
  5. try {
  6. return tryCatchTarget.apply(this, arguments);
  7. }
  8. catch (e) {
  9. errorObject_1.errorObject.e = e;
  10. return errorObject_1.errorObject;
  11. }
  12. }
  13. function tryCatch(fn) {
  14. tryCatchTarget = fn;
  15. return tryCatcher;
  16. }
  17. exports.tryCatch = tryCatch;
  18. ;
  19. //# sourceMappingURL=tryCatch.js.map