util: add encodeInto to TextEncoder
Continuation of @atticusyang’s #28862
Add function encodeInto to TextEncoder, and add MessageChannel to the encodeInto.any.js test.
Fixes: https://github.com/nodejs/node/issues/28851 Fixes: https://github.com/nodejs/node/issues/26904 Refs: https://github.com/nodejs/node/pull/28862
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines