Commit 6dd093da authored by James M Snell's avatar James M Snell
Browse files

buffer,string_decoder: consolidate encoding validation logic

Buffer.isEncoding and string_decoder.normalizeEncoding shared
quite a bit of logic. This moves the primary logic into
internal/util. The userland modules that monkey patch Buffer.isEncoding
should still work.

PR-URL: https://github.com/nodejs/node/pull/7207


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 193afef3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment