Closed guenoledc closed 5 years ago
At line: https://github.com/go-macaroon/js-macaroon/blob/15a163659ef213d2eee69f4605904ca52ff15426/macaroon.js#L125
minCap <= this._capacity is always false because this_capacity is undefined
minCap <= this._capacity
Recommendation: Change the constructor
constructor(capacity) { this._buf = new Uint8Array(capacity); this._length = 0; this._capacity = capacity }
seems resolved in https://github.com/go-macaroon/js-macaroon/pull/40 Could you merge the pull request ?
This issue has now been resolved with #40 being merged.
At line: https://github.com/go-macaroon/js-macaroon/blob/15a163659ef213d2eee69f4605904ca52ff15426/macaroon.js#L125
minCap <= this._capacity
is always false because this_capacity is undefinedRecommendation: Change the constructor