diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-27 10:05:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 10:05:20 -0400 |
commit | 742cc3111ccb7c3c12c1b05904be052094657481 (patch) | |
tree | 56910a8843fbc666b719b61e772bfa51dbfd750e /ext/node/lib.rs | |
parent | 03132e19da6c8e34e8100c6a57cd911b43900950 (diff) |
refactor(cli): extract out ProcState from CliMainWorker (#18867)
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index cc4afb2b8..53b4f5c08 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -534,10 +534,10 @@ deno_core::extension!(deno_node, pub fn initialize_runtime( js_runtime: &mut JsRuntime, uses_local_node_modules_dir: bool, - maybe_binary_command_name: Option<String>, + maybe_binary_command_name: Option<&str>, ) -> Result<(), AnyError> { let argv0 = if let Some(binary_command_name) = maybe_binary_command_name { - serde_json::to_string(binary_command_name.as_str())? + serde_json::to_string(binary_command_name)? } else { "undefined".to_string() }; |