diff --git a/lib/internal/process/stdio.js b/lib/internal/process/stdio.js index 61892165999d92..08781547c48952 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -123,7 +123,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();