In the `web worker` environment there is no `window` or `global` object, instead the global context is `self`

https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers