summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/process.ts')
-rw-r--r--ext/node/polyfills/process.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts
index 7f522386c..b24bf6a8e 100644
--- a/ext/node/polyfills/process.ts
+++ b/ext/node/polyfills/process.ts
@@ -5,6 +5,7 @@
// deno-lint-ignore-file prefer-primordials
import { core, internals } from "ext:core/mod.js";
+import { initializeDebugEnv } from "ext:deno_node/internal/util/debuglog.ts";
import {
op_geteuid,
op_node_process_kill,
@@ -845,6 +846,7 @@ internals.__bootstrapNodeProcess = function (
argv0Val: string | undefined,
args: string[],
denoVersions: Record<string, string>,
+ nodeDebug: string,
warmup = false,
) {
if (!warmup) {
@@ -891,6 +893,8 @@ internals.__bootstrapNodeProcess = function (
platform = isWindows ? "win32" : Deno.build.os;
pid = Deno.pid;
+ initializeDebugEnv(nodeDebug);
+
// @ts-ignore Remove setStartTime and #startTime is not modifiable
delete process.setStartTime;
delete internals.__bootstrapNodeProcess;