github-pages-deploy-action/node_modules/core-js-pure/internals/perform.js
2020-03-06 22:45:40 -05:00

8 lines
156 B
JavaScript

module.exports = function (exec) {
try {
return { error: false, value: exec() };
} catch (error) {
return { error: true, value: error };
}
};