Skip to content

Commit

Permalink
Removed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Mar 2, 2021
1 parent d2479ef commit c279c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ test('nil processing works', function (t) {
t.equal(decodedItemIndex, 2)
})

decoder.write(new Buffer([0xc0, 0xc2]))
decoder.write(Buffer.from([0xc0, 0xc2]))
decoder.end()
})

Expand Down

0 comments on commit c279c34

Please sign in to comment.