diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-20 05:27:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 18:57:18 +0530 |
commit | c97a97240bb60d00f7a28ef327f444a9b6820f37 (patch) | |
tree | f9815c64216bcf359749a73127e35b1e57ea24e2 /ext/io/12_io.js | |
parent | 611e71cf3b053f350006cc55b6387603a894ca13 (diff) |
fix(ext/node): handle closing process.stdin more than once (#21267)
Fixes https://github.com/denoland/deno/issues/21112
Aligns more towards what Node.js does. Closing stdin more than once is a
nop.
Diffstat (limited to 'ext/io/12_io.js')
-rw-r--r-- | ext/io/12_io.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/12_io.js b/ext/io/12_io.js index 1bb8f9fba..e1d72ffb5 100644 --- a/ext/io/12_io.js +++ b/ext/io/12_io.js @@ -241,7 +241,7 @@ class Stdin { } close() { - core.close(this.rid); + core.tryClose(this.rid); } get readable() { |