diff --git a/index.js b/index.js index 577984c..78de88c 100644 --- a/index.js +++ b/index.js @@ -308,7 +308,11 @@ module.exports = function parse (modules, opts) { }); if (callee !== undefined) { - res = callee.apply(null, args); + try { + res = callee.apply(null, args); + } catch (err) { + // Evaluate to undefined + } } }