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: do not break if global.process missing #41

Merged
merged 5 commits into from
Sep 21, 2021
Merged

Conversation

isaacs
Copy link
Member

@isaacs isaacs commented Sep 14, 2021

This makes it possible to fix the same shortcoming in node-tap, so that tap can be compiled for use in browsers, electron, and other environments where process is not set.

Some features that rely on global.process properties are degraded, of course, with reasonable fallbacks and useful errors where appropriate.

lib/base.js Outdated Show resolved Hide resolved
Copy link
Member

@coreyfarrell coreyfarrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably lib/snapshot.js comment should be addressed?

lib/mock.js Outdated Show resolved Hide resolved
lib/snapshot.js Outdated Show resolved Hide resolved
settings.js Outdated Show resolved Hide resolved
@isaacs isaacs merged commit 66c23ee into master Sep 21, 2021
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

2 participants