Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
buffer: consider deprecated raws as valid encoding
Even though `raws` is a deprecated encoding, it is still valid as per
`ParseEncoding` in `node.cc`.
  • Loading branch information
thefourtheye committed Sep 12, 2015
commit 4ccd858fc4699cd312f6ce5f2b423389dd6ce949
1 change: 1 addition & 0 deletions lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Buffer.isEncoding = function(encoding) {
case 'utf16le':
case 'utf-16le':
case 'raw':
case 'raws':
return true;

default:
Expand Down