source: trip-planner-front/node_modules/rxjs/_esm5/internal/util/tryCatch.js@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 499 bytes
Line 
1/** PURE_IMPORTS_START _errorObject PURE_IMPORTS_END */
2import { errorObject } from './errorObject';
3var tryCatchTarget;
4function tryCatcher() {
5 errorObject.e = undefined;
6 try {
7 return tryCatchTarget.apply(this, arguments);
8 }
9 catch (e) {
10 errorObject.e = e;
11 return errorObject;
12 }
13 finally {
14 tryCatchTarget = undefined;
15 }
16}
17export function tryCatch(fn) {
18 tryCatchTarget = fn;
19 return tryCatcher;
20}
21//# sourceMappingURL=tryCatch.js.map
Note: See TracBrowser for help on using the repository browser.