summaryrefslogtreecommitdiff
path: root/cli/tools/repl/session.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-20 00:40:21 -0400
committerGitHub <noreply@github.com>2023-03-20 00:40:21 -0400
commitaba5329aec06a92b591ef92ddc40ac0d25c870fa (patch)
treefc6ef43dac484b2a50a983c937c9c25f379d0cc8 /cli/tools/repl/session.rs
parent090169cfbc6699486765b729d532b5b837210b12 (diff)
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
Diffstat (limited to 'cli/tools/repl/session.rs')
-rw-r--r--cli/tools/repl/session.rs3
1 files changed, 1 insertions, 2 deletions
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;
}