From 812f2e4c22182fdbaf783dba3cc9d178783eced7 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 17 May 2024 14:35:19 +0200 Subject: fix: serve handler error with 0 arguments (#23652) Fixes https://github.com/denoland/deno/issues/23651 Co-authored-by: Satya Rohith --- tests/testdata/serve/no_args.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/testdata/serve/no_args.ts (limited to 'tests/testdata/serve/no_args.ts') diff --git a/tests/testdata/serve/no_args.ts b/tests/testdata/serve/no_args.ts new file mode 100644 index 000000000..891ddea67 --- /dev/null +++ b/tests/testdata/serve/no_args.ts @@ -0,0 +1,5 @@ +export default { + fetch() { + return new Response("deno serve with no args in fetch() works!"); + }, +}; -- cgit v1.2.3