debian-mirror-gitlab/core-js/internals/fails.js
2019-12-16 22:33:55 +05:30

7 lines
108 B
JavaScript

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