source: trip-planner-front/node_modules/rxjs/internal/util/tryCatch.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 584 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var errorObject_1 = require("./errorObject");
4var tryCatchTarget;
5function 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}
18function tryCatch(fn) {
19 tryCatchTarget = fn;
20 return tryCatcher;
21}
22exports.tryCatch = tryCatch;
23//# sourceMappingURL=tryCatch.js.map
Note: See TracBrowser for help on using the repository browser.