From bf9dcfe89c629f6415aa742b72a289e6f14a7c0e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 12 Feb 2016 15:59:19 -0800 Subject: [PATCH] Add jsdoc `constructor` tags. [ci skip] --- lodash.js | 5 +++++ test/test.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index b2a421028..f853a275e 100644 --- a/lodash.js +++ b/lodash.js @@ -1569,6 +1569,7 @@ * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. * * @private + * @constructor * @param {*} value The value to wrap. */ function LazyWrapper(value) { @@ -1683,6 +1684,7 @@ * Creates an hash object. * * @private + * @constructor * @returns {Object} Returns the new hash object. */ function Hash() {} @@ -1745,6 +1747,7 @@ * Creates a map cache object to store key-value pairs. * * @private + * @constructor * @param {Array} [values] The values to cache. */ function MapCache(values) { @@ -1849,6 +1852,7 @@ * Creates a set cache object to store unique values. * * @private + * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { @@ -1907,6 +1911,7 @@ * Creates a stack cache object to store key-value pairs. * * @private + * @constructor * @param {Array} [values] The values to cache. */ function Stack(values) { diff --git a/test/test.js b/test/test.js index 5680d4722..0fd03965f 100644 --- a/test/test.js +++ b/test/test.js @@ -353,11 +353,11 @@ .join(''); /** - * The custom error constructor. + * Creates a custom error object. * * @private + * @constructor * @param {string} message The error message. - * @returns {Object} Returns the new error object instance. */ function CustomError(message) { this.name = 'CustomError';