From b1ce2e41676ab5bc807a705b072986d9357fece5 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 23 Aug 2023 17:03:05 -0600 Subject: fix(ext/web): add stream tests to detect v8slice split bug (#20253) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index cdbd878d6..9044a14da 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -36,7 +36,7 @@ use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_core::error::JsError; use deno_core::futures::FutureExt; -use deno_core::task::JoinHandle; +use deno_core::unsync::JoinHandle; use deno_runtime::colors; use deno_runtime::fmt_errors::format_js_error; use deno_runtime::tokio_util::create_and_run_current_thread_with_maybe_metrics; @@ -76,7 +76,7 @@ impl SubcommandOutput for Result<(), std::io::Error> { fn spawn_subcommand + 'static, T: SubcommandOutput>( f: F, ) -> JoinHandle> { - deno_core::task::spawn(f.map(|r| r.output())) + deno_core::unsync::spawn(f.map(|r| r.output())) } async fn run_subcommand(flags: Flags) -> Result { -- cgit v1.2.3