Skip to content
Commit Detail

Commit 98fd6db

Author
Anna Kapuscinska <akapuscinska@cloudflare.com> 2026-03-26 23:52:54 +0000
Parents
d355743
Tree
b217b31
Add isDynamicDispatch flag to the worker entrypoint dispatch path

Pass isDynamicDispatch bool from newWorkerEntrypoint() into
getExportedHandler(), covering both the HTTP/connect path (via
WorkerEntrypoint) and the JS RPC path (via JsRpcSessionCustomEvent and
EntrypointJsRpcTarget).

The flag is passed as a parameter to CustomEvent::run() so every
implementation is required at the call site to forward it explicitly to
getExportedHandler(). All other CustomEvent::run() implementations
(trace, queue, hibernatable-web-socket, tail-stream) also pass it
through for consistency and forward-compatibility.

Files changed