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 /runtime | |
| 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 'runtime')
| -rw-r--r-- | runtime/inspector_server.rs | 4 | ||||
| -rw-r--r-- | runtime/tokio_util.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/inspector_server.rs b/runtime/inspector_server.rs index 70dda9832..1fb840790 100644 --- a/runtime/inspector_server.rs +++ b/runtime/inspector_server.rs @@ -15,7 +15,7 @@ use deno_core::futures::task::Poll; use deno_core::serde_json; use deno_core::serde_json::json; use deno_core::serde_json::Value; -use deno_core::task::spawn; +use deno_core::unsync::spawn; use deno_core::url::Url; use deno_core::InspectorMsg; use deno_core::InspectorSessionProxy; @@ -111,7 +111,7 @@ where Fut::Output: 'static, { fn execute(&self, fut: Fut) { - deno_core::task::spawn(fut); + deno_core::unsync::spawn(fut); } } diff --git a/runtime/tokio_util.rs b/runtime/tokio_util.rs index 4dbaabf44..4ae4f2c38 100644 --- a/runtime/tokio_util.rs +++ b/runtime/tokio_util.rs @@ -2,7 +2,7 @@ use std::fmt::Debug; use std::str::FromStr; -use deno_core::task::MaskFutureAsSend; +use deno_core::unsync::MaskFutureAsSend; #[cfg(tokio_unstable)] use tokio_metrics::RuntimeMonitor; |
