◐ Shell
clean mode source ↗

worker: initial implementation · nodejs/node@109c92e

@@ -410,6 +410,8 @@ added: v0.7.0

410410

The `process.abort()` method causes the Node.js process to exit immediately and

411411

generate a core file.

412412413+

This feature is not available in [`Worker`][] threads.

414+413415

## process.arch

414416

<!-- YAML

415417

added: v0.5.0

@@ -517,6 +519,8 @@ try {

517519

}

518520

```

519521522+

This feature is not available in [`Worker`][] threads.

523+520524

## process.config

521525

<!-- YAML

522526

added: v0.7.7

@@ -918,6 +922,8 @@ console.log(process.env.test);

918922

// => 1

919923

```

920924925+

`process.env` is read-only in [`Worker`][] threads.

926+921927

## process.execArgv

922928

<!-- YAML

923929

added: v0.7.7

@@ -1030,6 +1036,9 @@ If it is necessary to terminate the Node.js process due to an error condition,

10301036

throwing an *uncaught* error and allowing the process to terminate accordingly

10311037

is safer than calling `process.exit()`.

103210381039+

In [`Worker`][] threads, this function stops the current thread rather

1040+

than the current process.

1041+10331042

## process.exitCode

10341043

<!-- YAML

10351044

added: v0.11.8

@@ -1203,6 +1212,7 @@ console.log(process.getgroups()); // [ 27, 30, 46, 1000 ]

1203121212041213

This function is only available on POSIX platforms (i.e. not Windows or

12051214

Android).

1215+

This feature is not available in [`Worker`][] threads.

1206121612071217

## process.kill(pid[, signal])

12081218

<!-- YAML

@@ -1306,6 +1316,9 @@ The _heap_ is where objects, strings, and closures are stored. Variables are

13061316

stored in the _stack_ and the actual JavaScript code resides in the

13071317

_code segment_.

130813181319+

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

13111324

added: v0.1.26

@@ -1569,6 +1582,7 @@ if (process.getegid && process.setegid) {

1569158215701583

This function is only available on POSIX platforms (i.e. not Windows or

15711584

Android).

1585+

This feature is not available in [`Worker`][] threads.

1572158615731587

## process.seteuid(id)

15741588

<!-- YAML

@@ -1596,6 +1610,7 @@ if (process.geteuid && process.seteuid) {

1596161015971611

This function is only available on POSIX platforms (i.e. not Windows or

15981612

Android).

1613+

This feature is not available in [`Worker`][] threads.

1599161416001615

## process.setgid(id)

16011616

<!-- YAML

@@ -1623,6 +1638,7 @@ if (process.getgid && process.setgid) {

1623163816241639

This function is only available on POSIX platforms (i.e. not Windows or

16251640

Android).

1641+

This feature is not available in [`Worker`][] threads.

1626164216271643

## process.setgroups(groups)

16281644

<!-- YAML

@@ -1639,6 +1655,7 @@ The `groups` array can contain numeric group IDs, group names or both.

1639165516401656

This function is only available on POSIX platforms (i.e. not Windows or

16411657

Android).

1658+

This feature is not available in [`Worker`][] threads.

1642165916431660

## process.setuid(id)

16441661

<!-- YAML

@@ -1664,6 +1681,7 @@ if (process.getuid && process.setuid) {

1664168116651682

This function is only available on POSIX platforms (i.e. not Windows or

16661683

Android).

1684+

This feature is not available in [`Worker`][] threads.

1667168516681686

## 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.

170217201721+

This feature is not available in [`Worker`][] threads.

1722+17031723

## process.stdin

1704172417051725

* {Stream}

@@ -1732,6 +1752,8 @@ In "old" streams mode the `stdin` stream is paused by default, so one

17321752

must call `process.stdin.resume()` to read from it. Note also that calling

17331753

`process.stdin.resume()` itself would switch stream to "old" mode.

173417541755+

This feature is not available in [`Worker`][] threads.

1756+17351757

## process.stdout

1736175817371759

* {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.

175217741775+

This feature is not available in [`Worker`][] threads.

1776+17531777

### A note on process I/O

1754177817551779

`process.stdout` and `process.stderr` differ from other Node.js streams in

@@ -1865,6 +1889,8 @@ console.log(

18651889

);

18661890

```

186718911892+

This feature is not available in [`Worker`][] threads.

1893+18681894

## process.uptime()

18691895

<!-- YAML

18701896

added: 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