Skip to content

buffer: allow .write() offset to be at buffer end

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

Do not throw if the offset passed to buf.write() points to the end of the buffer.

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

CI: https://ci.nodejs.org/job/node-test-commit/4633/

Merge request reports

Loading