Skip to content

Commit

Permalink
Fix tap assertion parse of null comment.
Browse files Browse the repository at this point in the history
Explicilty set the value of comment to `null` if it is nullish. The
`String.split` returns `null` in Node.js 0.12 and `undefined` in Node.js
0.12.
  • Loading branch information
flatheadmill committed Jun 15, 2015
1 parent a0a8fe0 commit b2f1509
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tap.js
Expand Up @@ -26,6 +26,8 @@ module.exports = {
if (todo = ($ = /^todo\s(.*)$/i.exec(comment)) != null) {
comment = $[1]
}
} else {
comment = null
}
}
return {
Expand Down

0 comments on commit b2f1509

Please sign in to comment.