diff options
author | 2022-12-17 06:40:41 +0200 | |
---|---|---|
committer | 2022-12-16 20:40:41 -0800 | |
commit | 68fd43313de13e58a405b4dde530471420aa784a (patch) | |
tree | 2b7fb89aafd428f7722edbfc444f756db4e10c27 /src/bun.js/builtins/js/ProcessObjectInternals.js | |
parent | b06ca07eee8783ac4fd923ade8fc12f1db2ff068 (diff) | |
download | bun-68fd43313de13e58a405b4dde530471420aa784a.tar.gz bun-68fd43313de13e58a405b4dde530471420aa784a.tar.zst bun-68fd43313de13e58a405b4dde530471420aa784a.zip |
add tests for `process.stdin` (#1621)
Diffstat (limited to 'src/bun.js/builtins/js/ProcessObjectInternals.js')
-rw-r--r-- | src/bun.js/builtins/js/ProcessObjectInternals.js | 2 |
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(); } |