[v8.x-backport] test: add assertions for TextEncoder/Decoder
PR-URL: https://github.com/nodejs/node/pull/18132 Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Luigi Pinca luigipinca@gmail.com Reviewed-By: Tiancheng "Timothy" Gu timothygu99@gmail.com Reviewed-By: Colin Ihrig cjihrig@gmail.com
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines