Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker: add support for platformData #37486

Closed
wants to merge 2 commits into from

Commits on Mar 11, 2021

  1. 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 nodejs#30992
    but does not implement a complete fix.
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    jasnell committed Mar 11, 2021
    Copy the full SHA
    4f3f0f4 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7cf985a View commit details
    Browse the repository at this point in the history