From fb24b004ba598cbc618e6a27b657fc38a5f84af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Jan 2024 21:09:19 +0100 Subject: [PATCH] chore: improve deprecation hint for Deno.isatty() (#22086) --- runtime/js/40_tty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js index 97e35e0c35..d6777a62da 100644 --- a/runtime/js/40_tty.js +++ b/runtime/js/40_tty.js @@ -19,7 +19,7 @@ function isatty(rid) { internals.warnOnDeprecatedApi( "Deno.isatty()", new Error().stack, - "Use `stdStream.isTerminal()` instead.", + "Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()` or `Deno.stderr.isTerminal()` instead.", ); return op_is_terminal(rid); }