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/worker.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/worker.rs')
| -rw-r--r-- | cli/worker.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index edc4ef907..302c00e10 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -112,6 +112,7 @@ pub struct CliMainWorkerOptions { pub is_npm_main: bool, pub location: Option<Url>, pub argv0: Option<String>, + pub node_debug: Option<String>, pub origin_data_folder_path: Option<PathBuf>, pub seed: Option<u64>, pub unsafely_ignore_certificate_errors: Option<Vec<String>>, @@ -607,6 +608,7 @@ impl CliMainWorkerFactory { inspect: shared.options.is_inspecting, has_node_modules_dir: shared.options.has_node_modules_dir, argv0: shared.options.argv0.clone(), + node_debug: shared.options.node_debug.clone(), node_ipc_fd: shared.node_ipc, disable_deprecated_api_warning: shared.disable_deprecated_api_warning, verbose_deprecated_api_warning: shared.verbose_deprecated_api_warning, @@ -816,6 +818,7 @@ fn create_web_worker_callback( inspect: shared.options.is_inspecting, has_node_modules_dir: shared.options.has_node_modules_dir, argv0: shared.options.argv0.clone(), + node_debug: shared.options.node_debug.clone(), node_ipc_fd: None, disable_deprecated_api_warning: shared.disable_deprecated_api_warning, verbose_deprecated_api_warning: shared.verbose_deprecated_api_warning, |
