2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: WebWorker.executionContext
|
|
|
|
---
|
|
|
|
|
|
|
|
# WebWorker.executionContext() method
|
|
|
|
|
|
|
|
Returns the ExecutionContext the WebWorker runs in
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class WebWorker {
|
|
|
|
executionContext(): Promise<ExecutionContext>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[ExecutionContext](./puppeteer.executioncontext.md)>
|
|
|
|
|
|
|
|
The ExecutionContext the web worker runs in.
|