Commit Detail
Commit 8184033
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