mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
refactor(ext/node): remove _process/stdio.js (#17911)
This commit is contained in:
parent
3187e4e909
commit
29a62e81dd
3 changed files with 4 additions and 13 deletions
|
@ -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
|
@ -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",
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue