Skip to content

Improve robustness of isNode check#937

Merged
dgeb merged 1 commit into
mainfrom
fix-933
Mar 6, 2022
Merged

Improve robustness of isNode check#937
dgeb merged 1 commit into
mainfrom
fix-933

Conversation

@dgeb

@dgeb dgeb commented Mar 6, 2022

Copy link
Copy Markdown
Member

Use optional chaining to handle cases in which the global process is null (because typeof null === 'object').

Fixes #933

Use optional chaining to handle cases in which the global `process` is `null` (because `typeof null === 'object'`).

Fixes #933
@dgeb dgeb added the bug label Mar 6, 2022
@dgeb dgeb merged commit 4d86b18 into main Mar 6, 2022
@dgeb dgeb deleted the fix-933 branch March 6, 2022 20:12
@dgeb dgeb mentioned this pull request Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not create MemorySource

1 participant