Every new change
This commit is contained in:
20
node_modules/rxjs/_esm2015/internal/util/tryCatch.js
generated
vendored
Normal file
20
node_modules/rxjs/_esm2015/internal/util/tryCatch.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import { errorObject } from './errorObject';
|
||||
let tryCatchTarget;
|
||||
function tryCatcher() {
|
||||
errorObject.e = undefined;
|
||||
try {
|
||||
return tryCatchTarget.apply(this, arguments);
|
||||
}
|
||||
catch (e) {
|
||||
errorObject.e = e;
|
||||
return errorObject;
|
||||
}
|
||||
finally {
|
||||
tryCatchTarget = undefined;
|
||||
}
|
||||
}
|
||||
export function tryCatch(fn) {
|
||||
tryCatchTarget = fn;
|
||||
return tryCatcher;
|
||||
}
|
||||
//# sourceMappingURL=tryCatch.js.map
|
Reference in New Issue
Block a user