Skip to content
Permalink
Browse files
Merge pull request #9558 from jamesgeorge007/hotfix/fix-typo
chore: Minor typographical fixes
  • Loading branch information
sokra committed Aug 12, 2019
2 parents 133862b + 72ee5a3 commit e62b6433de6a0ada12c71285ff50c80535875f24
Showing with 14 additions and 14 deletions.
  1. +12 −12 lib/ChunkGroup.js
  2. +2 −2 lib/Entrypoint.js
@@ -70,12 +70,12 @@ class ChunkGroup {
this.chunks = [];
/** @type {OriginRecord[]} */
this.origins = [];
/** Indicies in top-down order */
/** Indices in top-down order */
/** @private @type {Map<Module, number>} */
this._moduleIndicies = new Map();
/** Indicies in bottom-up order */
this._moduleIndices = new Map();
/** Indices in bottom-up order */
/** @private @type {Map<Module, number>} */
this._moduleIndicies2 = new Map();
this._moduleIndices2 = new Map();
}

/**
@@ -174,7 +174,7 @@ class ChunkGroup {
/**
* add a chunk into ChunkGroup. Is pushed on or prepended
* @param {Chunk} chunk chunk being pushed into ChunkGroupS
* @returns {boolean} returns true if chunk addition was ssuccesful.
* @returns {boolean} returns true if chunk addition was successful.
*/
pushChunk(chunk) {
const oldIdx = this.chunks.indexOf(chunk);
@@ -187,8 +187,8 @@ class ChunkGroup {

/**
* @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced
* @returns {boolean} rerturns true for
* @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} returns true if the replacement was successful
*/
replaceChunk(oldChunk, newChunk) {
const oldIdx = this.chunks.indexOf(oldChunk);
@@ -369,7 +369,7 @@ class ChunkGroup {

/**
* we need to iterate again over the children
* to remove this from the childs parents.
* to remove this from the child's parents.
* This can not be done in the above loop
* as it is not guaranteed that `this._parents` contains anything.
*/
@@ -460,7 +460,7 @@ class ChunkGroup {
* @returns {void}
*/
setModuleIndex(module, index) {
this._moduleIndicies.set(module, index);
this._moduleIndices.set(module, index);
}

/**
@@ -469,7 +469,7 @@ class ChunkGroup {
* @returns {number} index
*/
getModuleIndex(module) {
return this._moduleIndicies.get(module);
return this._moduleIndices.get(module);
}

/**
@@ -479,7 +479,7 @@ class ChunkGroup {
* @returns {void}
*/
setModuleIndex2(module, index) {
this._moduleIndicies2.set(module, index);
this._moduleIndices2.set(module, index);
}

/**
@@ -488,7 +488,7 @@ class ChunkGroup {
* @returns {number} index
*/
getModuleIndex2(module) {
return this._moduleIndicies2.get(module);
return this._moduleIndices2.get(module);
}

checkConstraints() {
@@ -52,8 +52,8 @@ class Entrypoint extends ChunkGroup {

/**
* @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced
* @returns {boolean} rerturns true for
* @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} returns true if the replacement was successful
*/
replaceChunk(oldChunk, newChunk) {
if (this.runtimeChunk === oldChunk) this.runtimeChunk = newChunk;

0 comments on commit e62b643

Please sign in to comment.