Skip to content

Commit 678fa77

Browse files
committed
doc: change worker.takeHeapSnapshot to getHeapSnapshot
Adapt doc to match implementation which exports getHeapSnapshot().
1 parent 811b3a9 commit 678fa77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ inside the worker thread. If `stdout: true` was not passed to the
685685
[`Worker`][] constructor, then data will be piped to the parent thread's
686686
[`process.stdout`][] stream.
687687

688-
### `worker.takeHeapSnapshot()`
688+
### `worker.getHeapSnapshot()`
689689
<!-- YAML
690690
added: v13.9.0
691691
-->

0 commit comments

Comments
 (0)