From c97a97240bb60d00f7a28ef327f444a9b6820f37 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 20 Nov 2023 05:27:18 -0800 Subject: 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. --- ext/io/12_io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/io') 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() { -- cgit v1.2.3