Skip to content

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

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

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

Conversation

@aortbals
Copy link
Copy Markdown
Contributor

@aortbals aortbals commented Oct 6, 2017

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
Copy link
Copy Markdown
Contributor

wincent commented Oct 13, 2017

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