Skip to content

Commit 68b850f

Browse files
Update doc/api/process.md
Co-authored-by: silverwind <[email protected]>
1 parent 685682f commit 68b850f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doc/api/process.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,6 +4322,8 @@ Sets the process title. This is equivalent to assigning a string to
43224322
[`process.title`][]. See [`process.title`][] for restrictions and platform
43234323
limitations.
43244324
4325+
If `title` is not a string, `setTitle()` throws a `TypeError`. This differs
4326+
from assigning to [`process.title`][], which coerces the value to a string.
43254327
```mjs
43264328
import { setTitle } from 'node:process';
43274329

0 commit comments

Comments
 (0)