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: enable passing command line flags #25467

Closed
wants to merge 3 commits into from

Commits on Jan 12, 2019

  1. worker: enable passing command line flags

    This PR adds the ability to provide Workers with their own
    execArgv flags in replacement of the main thread's execArgv. Only
    per-Isolate/per-Environment options are allowed. Per-Process options
    and V8 flags are not allowed. Passing an empty execArgv array will
    reset per-Isolate and per-Environment options of the Worker to their
    defaults. If execArgv option is not passed, the Worker will get
    the same flags as the main thread.
    
    Usage example:
    ```
    const worker = new Worker(__filename, {
        execArgv: ['--trace-warnings'],
    });
    ```
    yaelhe committed Jan 12, 2019
    Configuration menu
    Copy the full SHA
    3980026 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2019

  1. fixup

    yaelhe committed Jan 13, 2019
    Configuration menu
    Copy the full SHA
    a0993a3 View commit details
    Browse the repository at this point in the history
  2. fixup update doc

    yaelhe committed Jan 13, 2019
    Configuration menu
    Copy the full SHA
    a0ee304 View commit details
    Browse the repository at this point in the history