1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00

refactor(ext/node): remove _process/stdio.js (#17911)

This commit is contained in:
Yoshiya Hinosawa 2023-02-26 12:19:00 +09:00
parent e5ff08d85c
commit e2951cbaac
3 changed files with 4 additions and 13 deletions

View file

@ -1,7 +0,0 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
// Lazily initializes the actual stdio objects.
// This trick is necessary for avoiding circular dependencies between
// stream and process modules.
export const stdio = {};

File diff suppressed because one or more lines are too long

View file

@ -32,7 +32,6 @@ import {
createWritableStdioStream,
initStdin,
} from "internal:deno_node/polyfills/_process/streams.mjs";
import { stdio } from "internal:deno_node/polyfills/_process/stdio.mjs";
import {
enableNextTick,
processTicksAndRejections,
@ -752,16 +751,16 @@ internals.__bootstrapNodeProcess = function (
});
// Initializes stdin
stdin = stdio.stdin = process.stdin = initStdin();
stdin = process.stdin = initStdin();
/** https://nodejs.org/api/process.html#process_process_stderr */
stderr = stdio.stderr = process.stderr = createWritableStdioStream(
stderr = process.stderr = createWritableStdioStream(
files.stderr,
"stderr",
);
/** https://nodejs.org/api/process.html#process_process_stdout */
stdout = stdio.stdout = process.stdout = createWritableStdioStream(
stdout = process.stdout = createWritableStdioStream(
files.stdout,
"stdout",
);