Skip to content
Commit Detail

Commit 8184033

Author
Kenton Varda <kenton@cloudflare.com> 2024-04-04 12:06:42 -0500
Parents
084b006
Tree
1933bfd
Allow referencing empty-object exports as entrypoints.

This fixes a regression in miniflare around named entrypoints: If a script had a top-level export that was an object with no instance properties, miniflare would treat it as a named entrypoint (configuring a socket for it), but workerd would consider this config invalid because the export didn't appear to actually be able to handle events.

It would be hard to make miniflare be able to detect the types of exports, so instead we make workerd more lenient.

Files changed

4 files changed~4 modified