fix(ecma): 'has' local public method fixed in 'set' method.

This commit is contained in:
KyMAN 2025-02-19 09:46:47 +01:00
parent 716db073f8
commit d3b0b4de72
2 changed files with 8 additions and 6 deletions

View File

@ -102,11 +102,11 @@ export const ErrorsManager = (function(){
/** /**
* @param {!(number|string|Array.<number>)} error * @param {!(number|string|Array.<number>)} error
* @param {!Array.<string|null>} messages * @param {!Array.<string|null>} [messages = []]
* @returns {Array.<string>} * @returns {Array.<string>}
* @access public * @access public
*/ */
this.process = (error, messages) => { this.process = (error, messages = []) => {
/** @type {Array.<string>} */ /** @type {Array.<string>} */
const response = [], const response = [],
@ -367,14 +367,16 @@ export const ErrorsManager = (function(){
}; };
if(has(error)){ if(self.has(error)){
/** @type {number} */ /** @type {number} */
const l = error.length; const l = error.length;
while(code.length <= i) while(code.length <= i)
code.push(0); code.push(0);
for(; i < l; i ++) for(; i < l; i ++)
code[i] = (code[i] || 0) | error[i]; code[i] = (code[i] || 0) | error[i];
@ -458,8 +460,8 @@ export const ErrorsManager = (function(){
}; };
// /** @type {Array.<string>} */ /** @type {Array.<string>} */
// ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""); ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("");
/** /**
* @param {?any} value * @param {?any} value

View File

@ -1 +1 @@
0.0.1.28 0.0.1.29