Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

tryCatch.js 584B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var errorObject_1 = require("./errorObject");
  4. var tryCatchTarget;
  5. function tryCatcher() {
  6. errorObject_1.errorObject.e = undefined;
  7. try {
  8. return tryCatchTarget.apply(this, arguments);
  9. }
  10. catch (e) {
  11. errorObject_1.errorObject.e = e;
  12. return errorObject_1.errorObject;
  13. }
  14. finally {
  15. tryCatchTarget = undefined;
  16. }
  17. }
  18. function tryCatch(fn) {
  19. tryCatchTarget = fn;
  20. return tryCatcher;
  21. }
  22. exports.tryCatch = tryCatch;
  23. //# sourceMappingURL=tryCatch.js.map