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

7 lines
108 B
JavaScript

module.exports = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};