diff options
author | Satya Rohith <me@satyarohith.com> | 2024-05-05 19:46:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 16:16:02 +0200 |
commit | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (patch) | |
tree | 2e55850b36eeca1169ad87c00ffcb7b0b2477924 /cli/standalone/mod.rs | |
parent | d527b635753566e7d01391d675bf010c4856eff9 (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/standalone/mod.rs')
-rw-r--r-- | cli/standalone/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 3cfeb4f4c..47b035fc7 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -565,6 +565,7 @@ pub async fn run( .ok() .map(|req_ref| npm_pkg_req_ref_to_binary_command(&req_ref)) .or(std::env::args().next()), + node_debug: std::env::var("NODE_DEBUG").ok(), origin_data_folder_path: None, seed: metadata.seed, unsafely_ignore_certificate_errors: metadata |