Permalink
Browse files

fix the undefined indent test

  • Loading branch information...
substack committed Nov 29, 2012
1 parent 1b1629c commit bf9ff13e7051f8ae86e7353305ea1e8b7579a9dd
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/tap-consumer.js
View
@@ -215,7 +215,9 @@ TapConsumer.prototype._parseIndented = function () {
//console.error(ind, this._indent)
for (var i = 0, l = ind.length; i < l; i ++) {
var line = ind[i]
- , lt = line.trim()
+ if (line === undefined) continue
+ var lt = line.trim()
+
if (!ys) {
ys = line.match(/^(\s*)---(.*)$/)
if (ys) {

0 comments on commit bf9ff13

Please sign in to comment.