From d3b0b4de72455c69cb8410b8a9ac4cf4c891df43 Mon Sep 17 00:00:00 2001 From: KyMAN <0kyman0@gmail.com> Date: Wed, 19 Feb 2025 09:46:47 +0100 Subject: [PATCH] fix(ecma): 'has' local public method fixed in 'set' method. --- Public/ecma/ErrorsManager.ecma.js | 12 +++++++----- version | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Public/ecma/ErrorsManager.ecma.js b/Public/ecma/ErrorsManager.ecma.js index 7752079..b733879 100644 --- a/Public/ecma/ErrorsManager.ecma.js +++ b/Public/ecma/ErrorsManager.ecma.js @@ -102,11 +102,11 @@ export const ErrorsManager = (function(){ /** * @param {!(number|string|Array.)} error - * @param {!Array.} messages + * @param {!Array.} [messages = []] * @returns {Array.} * @access public */ - this.process = (error, messages) => { + this.process = (error, messages = []) => { /** @type {Array.} */ const response = [], @@ -367,14 +367,16 @@ export const ErrorsManager = (function(){ }; - if(has(error)){ + if(self.has(error)){ /** @type {number} */ const l = error.length; + while(code.length <= i) code.push(0); + for(; i < l; i ++) code[i] = (code[i] || 0) | error[i]; @@ -458,8 +460,8 @@ export const ErrorsManager = (function(){ }; - // /** @type {Array.} */ - // ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""); + /** @type {Array.} */ + ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""); /** * @param {?any} value diff --git a/version b/version index a2d82de..c8bdd68 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.0.1.28 \ No newline at end of file +0.0.1.29 \ No newline at end of file