Files
node/lib/internal
Anna Henningsen 9fbf0c60b5 worker: use copy of process.env
Instead of sharing the OS-backed store for all `process.env` instances,
create a copy of `process.env` for every worker that is created.

The copies do not interact. Native-addons do not see modifications to
`process.env` from Worker threads, but child processes started from
Workers do default to the Worker’s copy of `process.env`.

This makes Workers behave like child processes as far as `process.env`
is concerned, and an option corresponding to the `child_process`
module’s `env` option is added to the constructor.

Fixes: https://github.com/nodejs/node/issues/24947

PR-URL: https://github.com/nodejs/node/pull/26544
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2019-03-30 22:25:35 +01:00
..
2019-03-30 13:16:39 +01:00
2019-03-30 13:16:39 +01:00
2019-03-27 17:05:17 +01:00
2019-02-14 00:00:50 +01:00
2018-05-18 15:25:41 +02:00
2019-03-30 13:16:39 +01:00
2018-11-16 21:56:29 +09:00
2019-03-12 07:03:53 +08:00
2019-03-25 16:28:07 +01:00
2018-08-12 10:44:53 -07:00
2019-03-25 16:28:07 +01:00
2019-03-30 13:16:39 +01:00
2019-03-30 13:16:39 +01:00
2019-03-30 22:25:35 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.