The spec's IDL makes sendBeacon Window-only by…
It is an interface-definition decision — which interface gets the method — not a runtime check.
partial interface Navigator { boolean sendBeacon(...) }; — and WorkerNavigator is simply not extended. No runtime guard, no deprecation: the method just does not exist on the worker's navigator.
Review this lesson