diff --git a/bindings.js b/bindings.js index 226b37f..67df040 100644 --- a/bindings.js +++ b/bindings.js @@ -155,7 +155,7 @@ exports.getFileName = function getFileName(calling_file) { Error.prepareStackTrace = function(e, st) { for (var i = 0, l = st.length; i < l; i++) { fileName = st[i].getFileName(); - if (fileName !== __filename) { + if (fileName && fileName !== __filename) { if (calling_file) { if (fileName !== calling_file) { return;