This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buffer: no warning when encoding isn't passed
Buffer#write() was showing the deprecation warning when only buf.write('string') was passed. This is incorrect since the encoding is always optional. Argument order should follow: Buffer#write(string[, offset[, length]][, encoding]) (yeah, not confusing at all)
- Loading branch information
1 parent
85c8eeb
commit a263aba
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters