mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore: soft-remove Deno.{stdin,stderr,stdout}.rid
(#25479)
Towards #22079
This commit is contained in:
parent
292344af42
commit
5bac4075c3
5 changed files with 10 additions and 46 deletions
|
@ -461,6 +461,7 @@ Deno.test({
|
|||
Deno.test({
|
||||
name: "process.stdin",
|
||||
fn() {
|
||||
// @ts-ignore `Deno.stdin.rid` was soft-removed in Deno 2.
|
||||
assertEquals(process.stdin.fd, Deno.stdin.rid);
|
||||
assertEquals(process.stdin.isTTY, Deno.stdin.isTerminal());
|
||||
},
|
||||
|
@ -640,6 +641,7 @@ Deno.test({
|
|||
Deno.test({
|
||||
name: "process.stdout",
|
||||
fn() {
|
||||
// @ts-ignore `Deno.stdout.rid` was soft-removed in Deno 2.
|
||||
assertEquals(process.stdout.fd, Deno.stdout.rid);
|
||||
const isTTY = Deno.stdout.isTerminal();
|
||||
assertEquals(process.stdout.isTTY, isTTY);
|
||||
|
@ -668,6 +670,7 @@ Deno.test({
|
|||
Deno.test({
|
||||
name: "process.stderr",
|
||||
fn() {
|
||||
// @ts-ignore `Deno.stderr.rid` was soft-removed in Deno 2.
|
||||
assertEquals(process.stderr.fd, Deno.stderr.rid);
|
||||
const isTTY = Deno.stderr.isTerminal();
|
||||
assertEquals(process.stderr.isTTY, isTTY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue