mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
7 lines
283 B
JavaScript
7 lines
283 B
JavaScript
// Observe the production stdin reader without supplying data or closing its pipe.
|
|
const iterate = process.stdin[Symbol.asyncIterator];
|
|
process.stdin[Symbol.asyncIterator] = function (...args) {
|
|
process.stderr.write("REA_TEST_STDIN_READ\n");
|
|
return iterate.apply(this, args);
|
|
};
|