i suppose this is a reasonable feature test... i've also seen

```js
typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope
```