biofriction-wp-theme/node_modules/rxjs/_esm5/util/tryCatch.js

19 lines
415 B
JavaScript
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
/** PURE_IMPORTS_START ._errorObject PURE_IMPORTS_END */
import { errorObject } from './errorObject';
var tryCatchTarget;
function tryCatcher() {
try {
return tryCatchTarget.apply(this, arguments);
}
catch (e) {
errorObject.e = e;
return errorObject;
}
}
export function tryCatch(fn) {
tryCatchTarget = fn;
return tryCatcher;
}
;
//# sourceMappingURL=tryCatch.js.map