mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
104 B
JavaScript
8 lines
104 B
JavaScript
|
module.exports = function (exec) {
|
||
|
try {
|
||
|
return !!exec();
|
||
|
} catch (e) {
|
||
|
return true;
|
||
|
}
|
||
|
};
|