diff options
author | Satya Rohith <me@satyarohith.com> | 2024-04-29 15:06:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 09:36:53 +0000 |
commit | b8444066ea83433c8a3597407a9fb6b9e9e36085 (patch) | |
tree | c1a7686c5f776447c138e7943678060eb722626b /ext/node/polyfills/process.ts | |
parent | 455cf1743f70cb12025e36b3c4eb9a213fe77199 (diff) |
fix(ext/node): support NODE_DEBUG env (#23583)
Diffstat (limited to 'ext/node/polyfills/process.ts')
-rw-r--r-- | ext/node/polyfills/process.ts | 4 |
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; |