diff --git a/lib/internal/process/stdio.js b/lib/internal/process/stdio.js index efed8dc8d91741..44882dba84f9ec 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -132,7 +132,7 @@ function getMainThreadStdio() { function onpause() { if (!stdin._handle) return; - if (stdin._handle.reading && !stdin._readableState.flowing) { + if (stdin._handle.reading && !stdin.readableFlowing) { stdin._readableState.reading = false; stdin._handle.reading = false; stdin._handle.readStop();