mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
worker: graduate get/setEnvironmentData APIs
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/41272 Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
f12cf6db47
commit
237affc951
1 file changed
+14
-6
@@ -64,11 +64,15 @@ specifically `argv` and `execArgv` options.
|
||||
## `worker.getEnvironmentData(key)`
|
||||
|
||||
<!-- YAML
|
||||
added: v15.12.0
|
||||
added:
|
||||
- v15.12.0
|
||||
- v14.18.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/41272
|
||||
description: No longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1 - Experimental
|
||||
|
||||
* `key` {any} Any arbitrary, cloneable JavaScript value that can be used as a
|
||||
{Map} key.
|
||||
* Returns: {any}
|
||||
@@ -290,11 +294,15 @@ new Worker('process.env.SET_IN_WORKER = "foo"', { eval: true, env: SHARE_ENV })
|
||||
## `worker.setEnvironmentData(key[, value])`
|
||||
|
||||
<!-- YAML
|
||||
added: v15.12.0
|
||||
added:
|
||||
- v15.12.0
|
||||
- v14.18.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/41272
|
||||
description: No longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1 - Experimental
|
||||
|
||||
* `key` {any} Any arbitrary, cloneable JavaScript value that can be used as a
|
||||
{Map} key.
|
||||
* `value` {any} Any arbitrary, cloneable JavaScript value that will be cloned
|
||||
|
||||
Reference in new issue
Block a user