debian-mirror-gitlab/core-js/internals/perform.js
2019-09-25 13:30:05 +05:30

7 lines
156 B
JavaScript

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