diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-06 08:15:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 08:15:00 +1000 |
commit | 7937ae3f2f5a8c11f52c42676ba56d12fcb59aeb (patch) | |
tree | 1bfb9d994ef638bc26dc9c643e6eca35c2a7ccd9 /tests/testdata/run/error_for_await.ts | |
parent | 6919f33216bb1db2b3596ca6f2f9c2c54f322720 (diff) |
chore(net): soft-remove `Deno.serveHttp()` (#25451)
Towards #22079
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/testdata/run/error_for_await.ts')
-rw-r--r-- | tests/testdata/run/error_for_await.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdata/run/error_for_await.ts b/tests/testdata/run/error_for_await.ts index 64c81abe4..ce8571df1 100644 --- a/tests/testdata/run/error_for_await.ts +++ b/tests/testdata/run/error_for_await.ts @@ -5,7 +5,7 @@ for await (const conn of listener) { } function handleConn(conn: Deno.Conn) { - const httpConn = Deno.serveHttp(conn); + const httpConn = (Deno as any).serveHttp(conn); for await (const event of httpConn) { event.respondWith(new Response("html", { status: 200 })); } |