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 /ext/http | |
| 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 'ext/http')
| -rw-r--r-- | ext/http/http_next.rs | 4 | ||||
| -rw-r--r-- | ext/http/lib.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index 17e9befe2..4d5c63776 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -25,8 +25,8 @@ use deno_core::op; use deno_core::op2; use deno_core::serde_v8; use deno_core::serde_v8::from_v8; -use deno_core::task::spawn; -use deno_core::task::JoinHandle; +use deno_core::unsync::spawn; +use deno_core::unsync::JoinHandle; use deno_core::v8; use deno_core::AsyncRefCell; use deno_core::AsyncResult; diff --git a/ext/http/lib.rs b/ext/http/lib.rs index e0c5c89d0..93ea0895e 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -21,7 +21,7 @@ use deno_core::futures::FutureExt; use deno_core::futures::StreamExt; use deno_core::futures::TryFutureExt; use deno_core::op; -use deno_core::task::spawn; +use deno_core::unsync::spawn; use deno_core::AsyncRefCell; use deno_core::AsyncResult; use deno_core::BufView; @@ -1021,7 +1021,7 @@ where Fut::Output: 'static, { fn execute(&self, fut: Fut) { - deno_core::task::spawn(fut); + deno_core::unsync::spawn(fut); } } @@ -1031,7 +1031,7 @@ where Fut::Output: 'static, { fn execute(&self, fut: Fut) { - deno_core::task::spawn(fut); + deno_core::unsync::spawn(fut); } } |
