Skip to content

Commit 0fdfd67

Browse files
committed
[Tests] in node 0.10, Buffer .fill returns undefined
1 parent 84bdfe9 commit 0fdfd67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ test('HashBase#update', function (t) {
109109

110110
t.test('decode string with custom encoding', function (t) {
111111
t.plan(1)
112-
var buffer = Buffer.allocUnsafe(64).fill(0x42)
112+
var buffer = Buffer.allocUnsafe(64)
113+
buffer.fill(0x42)
113114
t.base._update = function () { t.same(this._block, buffer) }
114115
t.base.update(buffer.toString('hex'), 'hex')
115116
t.end()

0 commit comments

Comments
 (0)