From 237affc951ceb02df912d20d31c1d91cd32e6ba2 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 21 Dec 2021 12:30:38 -0800 Subject: [PATCH] worker: graduate get/setEnvironmentData APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/41272 Reviewed-By: Michaƫl Zasso --- doc/api/worker_threads.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 362cad18023c7f..1c8a08042da344 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -64,11 +64,15 @@ specifically `argv` and `execArgv` options. ## `worker.getEnvironmentData(key)` -> 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])` -> 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