From aba5329aec06a92b591ef92ddc40ac0d25c870fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 20 Mar 2023 00:40:21 -0400 Subject: refactor(ext/node): make initialization functions sync (#18282) These functions don't need to be async, as they are only calling synchronous JavaScript code. As a follow up, all 3 functions should be merge together - this will reduce roundtrips for calling V8 from Rust, which is somewhat expensive --- cli/tools/repl/session.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/tools/repl/session.rs') diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs index 4438f6ddc..5fa3e4b05 100644 --- a/cli/tools/repl/session.rs +++ b/cli/tools/repl/session.rs @@ -507,8 +507,7 @@ impl ReplSession { deno_node::initialize_runtime( &mut self.worker.js_runtime, self.proc_state.options.has_node_modules_dir(), - ) - .await?; + )?; self.has_initialized_node_runtime = true; } -- cgit v1.2.3