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:
James M Snell committed 2022-02-05 07:52:04 -08:00
1 parent de677e9ac2
commit 8e681d51b4
1 file changed
+8 -4
+8 -4
View File
@@ -67,10 +67,12 @@ specifically `argv` and `execArgv` options.
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}
@@ -295,10 +297,12 @@ new Worker('process.env.SET_IN_WORKER = "foo"', { eval: true, env: SHARE_ENV })
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