fix(ecma): 'has' local public method fixed in 'set' method.
This commit is contained in:
parent
716db073f8
commit
d3b0b4de72
@ -102,11 +102,11 @@ export const ErrorsManager = (function(){
|
||||
|
||||
/**
|
||||
* @param {!(number|string|Array.<number>)} error
|
||||
* @param {!Array.<string|null>} messages
|
||||
* @param {!Array.<string|null>} [messages = []]
|
||||
* @returns {Array.<string>}
|
||||
* @access public
|
||||
*/
|
||||
this.process = (error, messages) => {
|
||||
this.process = (error, messages = []) => {
|
||||
|
||||
/** @type {Array.<string>} */
|
||||
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.<string>} */
|
||||
// ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("");
|
||||
/** @type {Array.<string>} */
|
||||
ErrorsManager.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("");
|
||||
|
||||
/**
|
||||
* @param {?any} value
|
||||
|
Loading…
Reference in New Issue
Block a user