_fails.js 104 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7
module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};