summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
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()
};