you should do this instead:

```js
throw new Error('...');
```

Throwing a typically does not give you a stack but I am unsure of the behavior in workers.