diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-08-23 17:03:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 17:03:05 -0600 |
commit | b1ce2e41676ab5bc807a705b072986d9357fece5 (patch) | |
tree | 18d9b7796221d6236c9e993602c56c769345b6ce /cli/main.rs | |
parent | af1b794e53182dfe19cc675a107138263f08476c (diff) |
fix(ext/web): add stream tests to detect v8slice split bug (#20253)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<F: Future<Output = T> + 'static, T: SubcommandOutput>( f: F, ) -> JoinHandle<Result<i32, AnyError>> { - 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<i32, AnyError> { |