Skip to content

Commit

Permalink
stack: don't try to parse non-truthy lines
Browse files Browse the repository at this point in the history
Encountered while debugging some really oddball istanbul wrapping stuff.
This turned out to not be the root cause of the problem, but defense in
depth is usually a good idea.
  • Loading branch information
isaacs committed Jul 31, 2015
1 parent f417e80 commit c3b1a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stack.js
Expand Up @@ -173,7 +173,7 @@ var re = new RegExp(
)

function parseLine (line) {
var match = line.match(re)
var match = line && line.match(re)
if (!match)
return null

Expand Down

0 comments on commit c3b1a96

Please sign in to comment.