@@ -410,6 +410,8 @@ added: v0.7.0
410410The ` process.abort() ` method causes the Node.js process to exit immediately and
411411generate a core file.
412412
413+ This feature is not available in [ ` Worker ` ] [ ] threads.
414+
413415## process.arch
414416<!-- YAML
415417added: v0.5.0
@@ -517,6 +519,8 @@ try {
517519}
518520```
519521
522+ This feature is not available in [ ` Worker ` ] [ ] threads.
523+
520524## process.config
521525<!-- YAML
522526added: v0.7.7
@@ -918,6 +922,8 @@ console.log(process.env.test);
918922// => 1
919923```
920924
925+ ` process.env ` is read-only in [ ` Worker ` ] [ ] threads.
926+
921927## process.execArgv
922928<!-- YAML
923929added: v0.7.7
@@ -1030,6 +1036,9 @@ If it is necessary to terminate the Node.js process due to an error condition,
10301036throwing an * uncaught* error and allowing the process to terminate accordingly
10311037is safer than calling ` process.exit() ` .
10321038
1039+ In [ ` Worker ` ] [ ] threads, this function stops the current thread rather
1040+ than the current process.
1041+
10331042## process.exitCode
10341043<!-- YAML
10351044added: v0.11.8
@@ -1203,6 +1212,7 @@ console.log(process.getgroups()); // [ 27, 30, 46, 1000 ]
12031212
12041213This function is only available on POSIX platforms (i.e. not Windows or
12051214Android).
1215+ This feature is not available in [ ` Worker ` ] [ ] threads.
12061216
12071217## process.kill(pid[ , signal] )
12081218<!-- YAML
@@ -1306,6 +1316,9 @@ The _heap_ is where objects, strings, and closures are stored. Variables are
13061316stored in the _ stack_ and the actual JavaScript code resides in the
13071317_ code segment_ .
13081318
1319+ When using [ ` Worker ` ] [ ] threads, ` rss ` will be a value that is valid for the
1320+ entire process, while the other fields will only refer to the current thread.
1321+
13091322## process.nextTick(callback[ , ...args] )
13101323<!-- YAML
13111324added: v0.1.26
@@ -1569,6 +1582,7 @@ if (process.getegid && process.setegid) {
15691582
15701583This function is only available on POSIX platforms (i.e. not Windows or
15711584Android).
1585+ This feature is not available in [ ` Worker ` ] [ ] threads.
15721586
15731587## process.seteuid(id)
15741588<!-- YAML
@@ -1596,6 +1610,7 @@ if (process.geteuid && process.seteuid) {
15961610
15971611This function is only available on POSIX platforms (i.e. not Windows or
15981612Android).
1613+ This feature is not available in [ ` Worker ` ] [ ] threads.
15991614
16001615## process.setgid(id)
16011616<!-- YAML
@@ -1623,6 +1638,7 @@ if (process.getgid && process.setgid) {
16231638
16241639This function is only available on POSIX platforms (i.e. not Windows or
16251640Android).
1641+ This feature is not available in [ ` Worker ` ] [ ] threads.
16261642
16271643## process.setgroups(groups)
16281644<!-- YAML
@@ -1639,6 +1655,7 @@ The `groups` array can contain numeric group IDs, group names or both.
16391655
16401656This function is only available on POSIX platforms (i.e. not Windows or
16411657Android).
1658+ This feature is not available in [ ` Worker ` ] [ ] threads.
16421659
16431660## process.setuid(id)
16441661<!-- YAML
@@ -1664,6 +1681,7 @@ if (process.getuid && process.setuid) {
16641681
16651682This function is only available on POSIX platforms (i.e. not Windows or
16661683Android).
1684+ This feature is not available in [ ` Worker ` ] [ ] threads.
16671685
16681686## process.setUncaughtExceptionCaptureCallback(fn)
16691687<!-- YAML
@@ -1700,6 +1718,8 @@ a [Writable][] stream.
17001718` process.stderr ` differs from other Node.js streams in important ways, see
17011719[ note on process I/O] [ ] for more information.
17021720
1721+ This feature is not available in [ ` Worker ` ] [ ] threads.
1722+
17031723## process.stdin
17041724
17051725* {Stream}
@@ -1732,6 +1752,8 @@ In "old" streams mode the `stdin` stream is paused by default, so one
17321752must call ` process.stdin.resume() ` to read from it. Note also that calling
17331753` process.stdin.resume() ` itself would switch stream to "old" mode.
17341754
1755+ This feature is not available in [ ` Worker ` ] [ ] threads.
1756+
17351757## process.stdout
17361758
17371759* {Stream}
@@ -1750,6 +1772,8 @@ process.stdin.pipe(process.stdout);
17501772` process.stdout ` differs from other Node.js streams in important ways, see
17511773[ note on process I/O] [ ] for more information.
17521774
1775+ This feature is not available in [ ` Worker ` ] [ ] threads.
1776+
17531777### A note on process I/O
17541778
17551779` process.stdout ` and ` process.stderr ` differ from other Node.js streams in
@@ -1865,6 +1889,8 @@ console.log(
18651889);
18661890```
18671891
1892+ This feature is not available in [ ` Worker ` ] [ ] threads.
1893+
18681894## process.uptime()
18691895<!-- YAML
18701896added: v0.5.0
@@ -1992,6 +2018,7 @@ cases:
19922018[ `ChildProcess` ] : child_process.html#child_process_class_childprocess
19932019[ `Error` ] : errors.html#errors_class_error
19942020[ `EventEmitter` ] : events.html#events_class_eventemitter
2021+ [ `Worker` ] : worker.html#worker_worker
19952022[ `console.error()` ] : console.html#console_console_error_data_args
19962023[ `console.log()` ] : console.html#console_console_log_data_args
19972024[ `domain` ] : domain.html
0 commit comments