summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-08-23 17:03:05 -0600
committerGitHub <noreply@github.com>2023-08-23 17:03:05 -0600
commitb1ce2e41676ab5bc807a705b072986d9357fece5 (patch)
tree18d9b7796221d6236c9e993602c56c769345b6ce /ext/http/lib.rs
parentaf1b794e53182dfe19cc675a107138263f08476c (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/lib.rs')
-rw-r--r--ext/http/lib.rs6
1 files changed, 3 insertions, 3 deletions
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);
}
}