Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / internal / util / tryCatch.js
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