node/test/parallel/test-stdin-pause-resume-syn...

11 lines
294 B
JavaScript

console.error('before opening stdin');
process.stdin.resume();
console.error('stdin opened');
console.error('pausing stdin');
process.stdin.pause();
console.error('opening again');
process.stdin.resume();
console.error('pausing again');
process.stdin.pause();
console.error('should exit now');