summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-05-05 19:46:02 +0530
committerGitHub <noreply@github.com>2024-05-05 16:16:02 +0200
commitb2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (patch)
tree2e55850b36eeca1169ad87c00ffcb7b0b2477924 /cli/factory.rs
parentd527b635753566e7d01391d675bf010c4856eff9 (diff)
fix(ext/node): don't rely on Deno.env to read NODE_DEBUG (#23694)
This patch allows implementors to use ext/node without the need to implement Deno.env API. Closes https://github.com/denoland/deno/issues/23687
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index bfaf96f39..a9f6bf87e 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -885,6 +885,7 @@ impl CliFactory {
.options
.take_binary_npm_command_name()
.or(std::env::args().next()),
+ node_debug: std::env::var("NODE_DEBUG").ok(),
origin_data_folder_path: Some(self.deno_dir()?.origin_data_folder_path()),
seed: self.options.seed(),
unsafely_ignore_certificate_errors: self