From 742cc3111ccb7c3c12c1b05904be052094657481 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 27 Apr 2023 10:05:20 -0400 Subject: refactor(cli): extract out ProcState from CliMainWorker (#18867) --- ext/node/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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, + 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() }; -- cgit v1.2.3