diff options
author | James M Snell <jasnell@gmail.com> | 2021-02-22 16:22:17 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-03-15 07:40:26 -0700 |
commit | 802b3e7cf9a5074a72bec75cf1c46758b81e04b1 (patch) | |
tree | 7a7b249e5dec88d0bc7c0688e8b4f131d4a414e3 /deps/v8/tools/testrunner/local | |
parent | 7abdc3ecb42af70dd69460ff2a88b4b521116db5 (diff) | |
download | node-new-802b3e7cf9a5074a72bec75cf1c46758b81e04b1.tar.gz |
worker: add setEnvironmentData/getEnvironmentData
These APIs allow arbitrary, cloneable JavaScript values to be set and
passed to all new Worker instances spawned from the current context.
It is similar to `workerData` except that environment data is set
independently of the `new Worker()` constructor, and the the value is
passed automatically to all new Workers.
This is a *partial* fix of https://github.com/nodejs/node/issues/30992
but does not implement a complete fix.
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/37486
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'deps/v8/tools/testrunner/local')
0 files changed, 0 insertions, 0 deletions