-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
39 lines (26 loc) · 1020 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: "WorkerGlobalScope: dump() method"
short-title: dump()
slug: Web/API/WorkerGlobalScope/dump
page-type: web-api-instance-method
status:
- deprecated
- non-standard
browser-compat: api.WorkerGlobalScope.dump
---
{{APIRef("Web Workers API")}}{{Non-standard_Header}}{{Deprecated_Header}}
The **`WorkerGlobalScope.dump()`** method logs messages to the browser's standard output (`stdout`). If the browser was started from a terminal, output sent to `dump()` will appear in the terminal. This is the same as {{domxref("Window.dump()")}}, but for workers.
Output from `dump()` is _not_ sent to the browser's developer tools console. To log to the developer tools console, use [`console.log()`](/en-US/docs/Web/API/console/log_static).
## Syntax
```js-nolint
dump(message)
```
### Parameters
- `message`
- : A string containing the message to log.
### Return value
None ({{jsxref("undefined")}}).
## Specifications
This feature is not part of any specification.
## Browser compatibility
{{Compat}}