We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.fill
undefined
1 parent 9182f82 commit 5d1f911Copy full SHA for 5d1f911
test/index.js
@@ -109,7 +109,8 @@ test('HashBase#update', function (t) {
109
110
t.test('decode string with custom encoding', function (t) {
111
t.plan(1)
112
- var buffer = Buffer.allocUnsafe(64).fill(0x42)
+ var buffer = Buffer.allocUnsafe(64)
113
+ buffer.fill(0x42)
114
t.base._update = function () { t.same(this._block, buffer) }
115
t.base.update(buffer.toString('hex'), 'hex')
116
t.end()
0 commit comments