summaryrefslogtreecommitdiff
path: root/cli/tools/repl
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-12-13 08:07:26 -0700
committerGitHub <noreply@github.com>2023-12-13 08:07:26 -0700
commit76a6ea57753be420398d3eba8f313a6c98eab8c3 (patch)
tree66c95d582b711aa4f4234943f5526b98c8176210 /cli/tools/repl
parent461ef6bdd80347caa12934c2c16337bc8d40d9a4 (diff)
refactor(cli): update to new deno_core promise/call methods (#21519)
Diffstat (limited to 'cli/tools/repl')
-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