We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8837e0d commit 0f6bdfdCopy full SHA for 0f6bdfd
crates/base/test_cases/slow_resp/index.ts
@@ -1,9 +1,9 @@
1
Deno.serve(async (req: Request) => {
2
// NOTE(Nyannyacha): This should be hot enough to V8 decides JIT compilation.
3
-
4
- let nothing = await (req.method === "POST" ? req.text() : Promise.resolve(""));
5
6
- if(req.method === "POST") {
+ let nothing = req.method === "POST" ? await req.text() : "";
+
+ if (req.method === "POST") {
7
console.log(nothing);
8
}
9
0 commit comments