From 2b6d2dee2f8a887b60170f280ab981438241fc8d Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Mon, 22 Dec 2014 13:26:03 -0800 Subject: [PATCH] fix crash caused by 39e5008cfc84fe3f88d6e6e75be15241bbd671fe This is clearly the correct fix, but for testing purposes, it's not clear how to get the index into this weird state. Parsing all of JSDoc will cause a crash while looking at the doclet for module:jsdoc/tag/dictionary.Dictionary. Parsing just lib/jsdoc/tag/dictionary.js seems to work fine. --- lib/jsdoc/augment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jsdoc/augment.js b/lib/jsdoc/augment.js index 2798dd1b..f37be4ca 100644 --- a/lib/jsdoc/augment.js +++ b/lib/jsdoc/augment.js @@ -25,9 +25,9 @@ function mapDependencies(index, propertyName) { dependencies[name] = {}; if (hasOwnProp.call(doc, propertyName)) { len = doc[propertyName].length; - } - for (var j = 0; j < len; ++j) { - dependencies[name][doc[propertyName][j]] = true; + for (var j = 0; j < len; j++) { + dependencies[name][doc[propertyName][j]] = true; + } } } }