mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
22 lines
499 B
JavaScript
22 lines
499 B
JavaScript
|
/** PURE_IMPORTS_START _errorObject PURE_IMPORTS_END */
|
||
|
import { errorObject } from './errorObject';
|
||
|
var 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
|