@@ -410,6 +410,8 @@ added: v0.7.0
410
410
The ` process.abort() ` method causes the Node.js process to exit immediately and
411
411
generate a core file.
412
412
413
+ This feature is not available in [ ` Worker ` ] [ ] threads.
414
+
413
415
## process.arch
414
416
<!-- YAML
415
417
added: v0.5.0
@@ -517,6 +519,8 @@ try {
517
519
}
518
520
```
519
521
522
+ This feature is not available in [ ` Worker ` ] [ ] threads.
523
+
520
524
## process.config
521
525
<!-- YAML
522
526
added: v0.7.7
@@ -918,6 +922,8 @@ console.log(process.env.test);
918
922
// => 1
919
923
```
920
924
925
+ ` process.env ` is read-only in [ ` Worker ` ] [ ] threads.
926
+
921
927
## process.execArgv
922
928
<!-- YAML
923
929
added: v0.7.7
@@ -1030,6 +1036,9 @@ If it is necessary to terminate the Node.js process due to an error condition,
1030
1036
throwing an * uncaught* error and allowing the process to terminate accordingly
1031
1037
is safer than calling ` process.exit() ` .
1032
1038
1039
+ In [ ` Worker ` ] [ ] threads, this function stops the current thread rather
1040
+ than the current process.
1041
+
1033
1042
## process.exitCode
1034
1043
<!-- YAML
1035
1044
added: v0.11.8
@@ -1203,6 +1212,7 @@ console.log(process.getgroups()); // [ 27, 30, 46, 1000 ]
1203
1212
1204
1213
This function is only available on POSIX platforms (i.e. not Windows or
1205
1214
Android).
1215
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1206
1216
1207
1217
## process.kill(pid[ , signal] )
1208
1218
<!-- YAML
@@ -1306,6 +1316,9 @@ The _heap_ is where objects, strings, and closures are stored. Variables are
1306
1316
stored in the _ stack_ and the actual JavaScript code resides in the
1307
1317
_ code segment_ .
1308
1318
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
+
1309
1322
## process.nextTick(callback[ , ...args] )
1310
1323
<!-- YAML
1311
1324
added: v0.1.26
@@ -1569,6 +1582,7 @@ if (process.getegid && process.setegid) {
1569
1582
1570
1583
This function is only available on POSIX platforms (i.e. not Windows or
1571
1584
Android).
1585
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1572
1586
1573
1587
## process.seteuid(id)
1574
1588
<!-- YAML
@@ -1596,6 +1610,7 @@ if (process.geteuid && process.seteuid) {
1596
1610
1597
1611
This function is only available on POSIX platforms (i.e. not Windows or
1598
1612
Android).
1613
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1599
1614
1600
1615
## process.setgid(id)
1601
1616
<!-- YAML
@@ -1623,6 +1638,7 @@ if (process.getgid && process.setgid) {
1623
1638
1624
1639
This function is only available on POSIX platforms (i.e. not Windows or
1625
1640
Android).
1641
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1626
1642
1627
1643
## process.setgroups(groups)
1628
1644
<!-- YAML
@@ -1639,6 +1655,7 @@ The `groups` array can contain numeric group IDs, group names or both.
1639
1655
1640
1656
This function is only available on POSIX platforms (i.e. not Windows or
1641
1657
Android).
1658
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1642
1659
1643
1660
## process.setuid(id)
1644
1661
<!-- YAML
@@ -1664,6 +1681,7 @@ if (process.getuid && process.setuid) {
1664
1681
1665
1682
This function is only available on POSIX platforms (i.e. not Windows or
1666
1683
Android).
1684
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1667
1685
1668
1686
## process.setUncaughtExceptionCaptureCallback(fn)
1669
1687
<!-- YAML
@@ -1700,6 +1718,8 @@ a [Writable][] stream.
1700
1718
` process.stderr ` differs from other Node.js streams in important ways, see
1701
1719
[ note on process I/O] [ ] for more information.
1702
1720
1721
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1722
+
1703
1723
## process.stdin
1704
1724
1705
1725
* {Stream}
@@ -1732,6 +1752,8 @@ In "old" streams mode the `stdin` stream is paused by default, so one
1732
1752
must call ` process.stdin.resume() ` to read from it. Note also that calling
1733
1753
` process.stdin.resume() ` itself would switch stream to "old" mode.
1734
1754
1755
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1756
+
1735
1757
## process.stdout
1736
1758
1737
1759
* {Stream}
@@ -1750,6 +1772,8 @@ process.stdin.pipe(process.stdout);
1750
1772
` process.stdout ` differs from other Node.js streams in important ways, see
1751
1773
[ note on process I/O] [ ] for more information.
1752
1774
1775
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1776
+
1753
1777
### A note on process I/O
1754
1778
1755
1779
` process.stdout ` and ` process.stderr ` differ from other Node.js streams in
@@ -1865,6 +1889,8 @@ console.log(
1865
1889
);
1866
1890
```
1867
1891
1892
+ This feature is not available in [ ` Worker ` ] [ ] threads.
1893
+
1868
1894
## process.uptime()
1869
1895
<!-- YAML
1870
1896
added: v0.5.0
@@ -1992,6 +2018,7 @@ cases:
1992
2018
[ `ChildProcess` ] : child_process.html#child_process_class_childprocess
1993
2019
[ `Error` ] : errors.html#errors_class_error
1994
2020
[ `EventEmitter` ] : events.html#events_class_eventemitter
2021
+ [ `Worker` ] : worker.html#worker_worker
1995
2022
[ `console.error()` ] : console.html#console_console_error_data_args
1996
2023
[ `console.log()` ] : console.html#console_console_log_data_args
1997
2024
[ `domain` ] : domain.html
0 commit comments