UNPKG

122 BJavaScriptView Raw
1'use strict';
2module.exports = function (exec) {
3 try {
4 return !!exec();
5 } catch (error) {
6 return true;
7 }
8};