-
Notifications
You must be signed in to change notification settings - Fork 176
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 18 undici global #1056
Comments
I had a look into this, since I had already encountered the rogue global. The global was added here to fix nodejs/undici#1331 and nodejs/node#42814. Interestingly, it only appears once some code has tried to use the experimental built-in implementation of Essentially it allows the user-space I guess lab just needs to whitelist |
It's noted in undici that the Lines 112 to 126 in 0542146
|
It's curious that node wants to pollute the global js scope, when it could have been solved by exposing a virtual |
I read that they wont consider adding it until |
@devinivy I think that is overkill. The number is very unlikely to change during a major, and for majors we usually have to update the globals whitelist anyway. |
Took a stab at implementation - there's a lazy require of |
Support plan
Context
What are you trying to achieve or the steps to reproduce?
It looks like node's global detection is triggered on node@18 under certain conditions: https://github.com/Marsup/hapi-mongodb/actions/runs/3227815184/jobs/5283098977
undici
is not explicitly installed except for its presence in node's fetch implementation.What was the result you got?
A global leak
What result did you expect?
Node's global to be excluded
The text was updated successfully, but these errors were encountered: