readline: add support for async iteration
Rewritten version of https://github.com/nodejs/node/pull/18904, using more existing streams mechanisms.
Depends on #23901 for some of the edge case tests (relevant commits included within this PR).
Co-authored-by: Ivan Filenko ivan.filenko@protonmail.com Fixes: #18603 (closed) Refs: #18904
/cc @mcollina @devsnek @Prog1Dev
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