diff options
Diffstat (limited to 'tools/eslint/node_modules/lodash/_mapCacheSet.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/_mapCacheSet.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/eslint/node_modules/lodash/_mapCacheSet.js b/tools/eslint/node_modules/lodash/_mapCacheSet.js index 0ef1eafd87..7346849273 100644 --- a/tools/eslint/node_modules/lodash/_mapCacheSet.js +++ b/tools/eslint/node_modules/lodash/_mapCacheSet.js @@ -11,7 +11,11 @@ var getMapData = require('./_getMapData'); * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; return this; } |