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

Node flags not passed spawned process on win32 #559

Closed
ProTip opened this issue Aug 6, 2016 · 2 comments
Closed

Node flags not passed spawned process on win32 #559

ProTip opened this issue Aug 6, 2016 · 2 comments

Comments

@ProTip
Copy link

ProTip commented Aug 6, 2016

This prevents harmony flags being passed into sub-commands.

var proc;
  if (process.platform !== 'win32') {
    if (isExplicitJS) {
      args.unshift(bin);
      // add executable arguments to spawn
      args = (process.execArgv || []).concat(args);

      proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] });
    } else {
      proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
    }
  } else {
    args.unshift(bin);
    proc = spawn(process.execPath, args, { stdio: 'inherit'});
  }
@shadowspawn
Copy link
Collaborator

A new option might be using NODE_OPTIONS?
https://nodejs.org/api/cli.html#cli_node_options_options

This issue has not had any activity in over six months. It isn't likely to get acted on due to this report.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

@shadowspawn
Copy link
Collaborator

Hopefully this issue will be fixed by #611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants