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

fix: defend against process object being deleted #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jul 5, 2023

Occasionally test files will do weird stuff, like setting the process global to null, or to some other value.

Grab a reference to the process global as soon as the module is loaded, so that we don't end up trying to reference something that's gone or reassigned.

This is important for node-tap, because tests need to handle this sort of bad behavior gracefully.

Occasionally test files will do weird stuff, like setting the `process`
global to null, or to some other value.

Grab a reference to the process global as soon as the module is loaded,
so that we don't end up trying to reference something that's gone or
reassigned.
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

Successfully merging this pull request may close these issues.

None yet

1 participant