From 76a6ea57753be420398d3eba8f313a6c98eab8c3 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 13 Dec 2023 08:07:26 -0700 Subject: refactor(cli): update to new deno_core promise/call methods (#21519) --- cli/tools/repl/session.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cli/tools/repl') diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs index 22dd30caf..624d7dafe 100644 --- a/cli/tools/repl/session.rs +++ b/cli/tools/repl/session.rs @@ -202,14 +202,11 @@ impl ReplSession { worker .js_runtime - .with_event_loop( + .with_event_loop_future( session .post_message::<()>("Runtime.enable", None) .boxed_local(), - PollEventLoopOptions { - wait_for_inspector: false, - ..Default::default() - }, + PollEventLoopOptions::default(), ) .await?; @@ -298,14 +295,14 @@ impl ReplSession { self .worker .js_runtime - .with_event_loop( + .with_event_loop_future( self.session.post_message(method, params).boxed_local(), PollEventLoopOptions { - wait_for_inspector: false, // NOTE(bartlomieju): this is an important bit; we don't want to pump V8 // message loop here, so that GC won't run. Otherwise, the resulting // object might be GC'ed before we have a chance to inspect it. pump_v8_message_loop: false, + ..Default::default() }, ) .await -- cgit v1.2.3