FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: defend against process object being deleted by isaacs · Pull Request #48 · cspotcode/node-source-map-support · GitHub

fix: defend against process object being deleted - #48

Open
isaacs wants to merge 1 commit into
cspotcode:masterfrom
tapjs:isaacs/defend-against-process-deletion
Open

fix: defend against process object being deleted#48
isaacs wants to merge 1 commit into
cspotcode:masterfrom
tapjs:isaacs/defend-against-process-deletion

Conversation

isaacs commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL