aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js/ProcessObjectInternals.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/builtins/js/ProcessObjectInternals.js')
-rw-r--r--src/bun.js/builtins/js/ProcessObjectInternals.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/builtins/js/ProcessObjectInternals.js b/src/bun.js/builtins/js/ProcessObjectInternals.js
index 2a3c67242..e07d3389b 100644
--- a/src/bun.js/builtins/js/ProcessObjectInternals.js
+++ b/src/bun.js/builtins/js/ProcessObjectInternals.js
@@ -515,7 +515,7 @@ function getStdinStream(fd, rawRequire, Bun) {
}
resume() {
- this.#reader = Bun.stdin.stream().getReader();
+ this.#reader ??= Bun.stdin.stream().getReader();
this.ref();
return super.resume();
}