Backport 7176 for v6.x (buffer: fix creating from zero-length ArrayBuffer)
Checklist
-
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passes -
a test and/or benchmark is included -
the commit message follows commit guidelines
Affected core subsystem(s)
buffer
Description of change
This is a backport of https://github.com/nodejs/node/pull/7176 for v6.x. Applied cleanly.