Add testAssert() for arbitrary tests; fix skinLineComments() passing off-by-1 character to onComment(slice(.., end))

This commit is contained in:
keeyipchan
2013-01-26 18:12:39 -08:00
committed by Marijn Haverbeke
parent 17a0094694
commit 44f7aff2b7
3 changed files with 63 additions and 2 deletions

View File

@@ -497,7 +497,7 @@
ch = input.charCodeAt(tokPos);
}
if (options.onComment)
options.onComment(false, input.slice(start + 2, tokPos - 1), start, tokPos,
options.onComment(false, input.slice(start + 2, tokPos), start, tokPos,
startLoc, options.locations && curLineLoc());
}