You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (hex.length * 4 > this.length) {
throw 'Hex value is too large for this bit array.'
} else if (hex.length * 4 < this.length) {
// pad it
while(hex.length * 4 < this.length) {
hex = '0' + hex;
}
}
what this.length is about? is it undefined?
well, this causes size do nothing when new BitArray(size, hex)
test in chrome, or maybe this is only for nodejs module?