minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm5 / internal / util / tryCatch.js
1 /** PURE_IMPORTS_START _errorObject PURE_IMPORTS_END */
2 import { errorObject } from './errorObject';
3 var tryCatchTarget;
4 function 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 }
17 export function tryCatch(fn) {
18     tryCatchTarget = fn;
19     return tryCatcher;
20 }
21 //# sourceMappingURL=tryCatch.js.map