diff options
| author | Marvin Hagemeister <marvin@deno.com> | 2024-05-17 14:35:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-17 18:05:19 +0530 |
| commit | 812f2e4c22182fdbaf783dba3cc9d178783eced7 (patch) | |
| tree | 5c0f7123981248b088b7bf007bca0cb9748e5699 /tests/testdata/serve/port_0.ts | |
| parent | 20cb0e8863beb0d709adc2f41905ce3f1f465447 (diff) | |
fix: serve handler error with 0 arguments (#23652)
Fixes https://github.com/denoland/deno/issues/23651
Co-authored-by: Satya Rohith <me@satyarohith.com>
Diffstat (limited to 'tests/testdata/serve/port_0.ts')
| -rw-r--r-- | tests/testdata/serve/port_0.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testdata/serve/port_0.ts b/tests/testdata/serve/port_0.ts new file mode 100644 index 000000000..cdd8476eb --- /dev/null +++ b/tests/testdata/serve/port_0.ts @@ -0,0 +1,5 @@ +export default { + fetch(_req: Request) { + return new Response("deno serve --port 0 works!"); + }, +}; |
