test: add regression test for C++-created Buffer transfer
Add a test for a regression that occurs when transferring some
Buffer
objects that were created from C++ to a parent thread.
Fixes: https://github.com/nodejs/node/issues/34126
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines