perform.js 156 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 module.exports = function (exec) { try { return { error: false, value: exec() }; } catch (error) { return { error: true, value: error }; } };