puppeteer/website/versioned_docs/version-16.1.0/api/puppeteer.webworker.executioncontext.md

22 lines
373 B
Markdown
Raw Normal View History

---
sidebar_label: WebWorker.executionContext
---
# WebWorker.executionContext() method
Returns the ExecutionContext the WebWorker runs in
**Signature:**
```typescript
class WebWorker {
executionContext(): Promise<ExecutionContext>;
}
```
**Returns:**
Promise&lt;[ExecutionContext](./puppeteer.executioncontext.md)&gt;
The ExecutionContext the web worker runs in.