Skip to content

buffer: alias toLocaleString to toString

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

Buffer

Description of change

Make Buffer.prototype.toLocaleString an alias of Buffer.prototype.toString so that the output is actually useful.

Fixes: https://github.com/nodejs/node/issues/8147

/cc @nodejs/buffer

Merge request reports

Loading