minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm2015 / internal / util / tryCatch.js
1 import { errorObject } from './errorObject';
2 let tryCatchTarget;
3 function tryCatcher() {
4     errorObject.e = undefined;
5     try {
6         return tryCatchTarget.apply(this, arguments);
7     }
8     catch (e) {
9         errorObject.e = e;
10         return errorObject;
11     }
12     finally {
13         tryCatchTarget = undefined;
14     }
15 }
16 export function tryCatch(fn) {
17     tryCatchTarget = fn;
18     return tryCatcher;
19 }
20 //# sourceMappingURL=tryCatch.js.map