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

Running a test with --node-arguments='--expose-gc' causes ERR_WORKER_INVALID_EXEC_ARGV #2944

Closed
dmaevsky opened this issue Jan 13, 2022 · 2 comments

Comments

@dmaevsky
Copy link

npx ava tests/perf.spec.js --node-arguments='--expose-gc'

gives me

✖ Internal error
  Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --expose-gc

version 4.0.1

@novemberborn
Copy link
Member

AVA uses worker threads by default. Looks like this is not an argument that can be passed to worker threads. You can run with --no-worker-threads (IIRC) to use child processes and then this should work.

@codetheweb
Copy link
Contributor

I ran into this too trying to use --prof. Might be worth adding something to the docs about.

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

No branches or pull requests

3 participants