mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Replace the manual `options.encoding` type check in stream iterator consumers with the shared validator. Add coverage for non-string values in the async and sync text consumers. Signed-off-by: sjungwon03 <sjungwon03@gmail.com> PR-URL: https://github.com/nodejs/node/pull/64754 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>