summaryrefslogtreecommitdiff
path: root/cli/tools/repl/session.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/repl/session.rs')
-rw-r--r--cli/tools/repl/session.rs11
1 files changed, 4 insertions, 7 deletions
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