summaryrefslogtreecommitdiff
path: root/cli/bench/deno_http_native.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-08-30 18:40:00 +0200
committerGitHub <noreply@github.com>2021-08-30 18:40:00 +0200
commit0aa6b1e79f2f4cabdb857daabc06791dfef3140b (patch)
tree3d12b24b3c78f65a60c0936dccf018518189fc57 /cli/bench/deno_http_native.js
parent40526a03dcd29f9cc4f466610af2e966919d75a4 (diff)
chore: update to rusty_v8 0.27.0 (#11877)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/bench/deno_http_native.js')
-rw-r--r--cli/bench/deno_http_native.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/bench/deno_http_native.js b/cli/bench/deno_http_native.js
index 2b576255e..d68f8ea81 100644
--- a/cli/bench/deno_http_native.js
+++ b/cli/bench/deno_http_native.js
@@ -12,11 +12,8 @@ for await (const conn of listener) {
(async () => {
const requests = Deno.serveHttp(conn);
for await (const { respondWith } of requests) {
- try {
- respondWith(new Response(body));
- } catch {
- // Ignore.
- }
+ respondWith(new Response(body))
+ .catch((e) => console.log(e));
}
})();
}