-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Invalid execArgv for worker threads causes a subsequent TypeError #3131
Comments
Strange, an Thanks for the reproduction though, should be fixable. |
node --disable-proto=throw
@novemberborn : hi, note that there are two errors here, one when reporting error, and the "proto" error itself |
The |
v8 arguments on the main threads are passed on to workers, but passing the same v8 arguments explicitely triggers that error. Node.js is not smart enough here, see nodejs/node#41103. Only correct workaround would be for ava to whitelist which flags are allowed on the workers, until it is fixed in Node.js |
This is too much of an edge case for us to implement. Disabling worker threads should do the trick. |
To fix the issue, you will need to remove the --disable-proto=throw flag when running AVA. If you need to disable the ability to modify object prototypes, you can use the --no-proto flag instead. You can run AVA with the following command: |
Hi,
when launching ava with
node --disable-proto=throw
, it first produces this error:With a little hook, we can see the real error (which has no
errors
property):Ava version: 5.0.1
The text was updated successfully, but these errors were encountered: