node_modules/webpack/lib/util/StringXor.js
@@ -36,12 +36,12 @@ */ class StringXor { constructor() { /** @type {Buffer|undefined} */ /** @type {Buffer | undefined} */ this._value = undefined; } /** * Adds a string to the current StringXor object. * Processes the provided str. * @param {string} str string * @returns {void} */ @@ -62,6 +62,7 @@ const valueLen = value.length; if (valueLen < len) { const newValue = (this._value = Buffer.allocUnsafe(len)); /** @type {number} */ let i; for (i = 0; i < valueLen; i++) { newValue[i] = value[i] ^ str.charCodeAt(i);