Начало наработок
This commit is contained in:
17
node_modules/rxjs/_esm2015/util/tryCatch.js
generated
vendored
Normal file
17
node_modules/rxjs/_esm2015/util/tryCatch.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import { errorObject } from './errorObject';
|
||||
let 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
|
||||
Reference in New Issue
Block a user