summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-27 10:05:20 -0400
committerGitHub <noreply@github.com>2023-04-27 10:05:20 -0400
commit742cc3111ccb7c3c12c1b05904be052094657481 (patch)
tree56910a8843fbc666b719b61e772bfa51dbfd750e /ext/node/lib.rs
parent03132e19da6c8e34e8100c6a57cd911b43900950 (diff)
refactor(cli): extract out ProcState from CliMainWorker (#18867)
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs4
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()
};