Skip to content

Check if process is defined (for usage in the browser)#1058

Merged
wincent merged 1 commit into
graphql:masterfrom
aortbals:fix-process-undefined
Oct 13, 2017
Merged

Check if process is defined (for usage in the browser)#1058
wincent merged 1 commit into
graphql:masterfrom
aortbals:fix-process-undefined

Conversation

@aortbals

@aortbals aortbals commented Oct 6, 2017

Copy link
Copy Markdown
Contributor

When running this library in the browser, Node.js's process global is not necessarily defined. Usage in the browser is great for certain use cases. This adds a simple check that process is defined before using it in assertValidName.js

@wincent

wincent commented Oct 13, 2017

Copy link
Copy Markdown
Contributor

Thanks @aortbals. Seems quite reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants