mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
19
node_modules/rxjs/util/tryCatch.js
generated
vendored
Normal file
19
node_modules/rxjs/util/tryCatch.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var errorObject_1 = require('./errorObject');
|
||||
var tryCatchTarget;
|
||||
function tryCatcher() {
|
||||
try {
|
||||
return tryCatchTarget.apply(this, arguments);
|
||||
}
|
||||
catch (e) {
|
||||
errorObject_1.errorObject.e = e;
|
||||
return errorObject_1.errorObject;
|
||||
}
|
||||
}
|
||||
function tryCatch(fn) {
|
||||
tryCatchTarget = fn;
|
||||
return tryCatcher;
|
||||
}
|
||||
exports.tryCatch = tryCatch;
|
||||
;
|
||||
//# sourceMappingURL=tryCatch.js.map
|
Reference in New Issue
Block a user