We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac6c46 commit 121f4faCopy full SHA for 121f4fa
1 file changed
doc/api/process.md
@@ -4322,6 +4322,9 @@ Sets the process title. This is equivalent to assigning a string to
4322
[`process.title`][]. See [`process.title`][] for restrictions and platform
4323
limitations.
4324
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.
4327
+
4328
```mjs
4329
import { setTitle } from 'node:process';
4330
0 commit comments