Skip to content

src: do not make `Resize(0)`’d buffers base `nullptr`

This fixes issues in which APIs that accept pointers created this way treat nullptr and a zero-length buffer differently. We already do something similar for our Malloc() implementation.

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

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading