mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
chore: improve deprecation hint for Deno.isatty() (#22086)
This commit is contained in:
parent
8e67bf829a
commit
fb24b004ba
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function isatty(rid) {
|
||||||
internals.warnOnDeprecatedApi(
|
internals.warnOnDeprecatedApi(
|
||||||
"Deno.isatty()",
|
"Deno.isatty()",
|
||||||
new Error().stack,
|
new Error().stack,
|
||||||
"Use `stdStream.isTerminal()` instead.",
|
"Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()` or `Deno.stderr.isTerminal()` instead.",
|
||||||
);
|
);
|
||||||
return op_is_terminal(rid);
|
return op_is_terminal(rid);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue