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 global property lookup #203

Merged
merged 3 commits into from
Nov 13, 2019
Merged

Conversation

sholladay
Copy link
Collaborator

Fixes #202

This PR restores the global property lookup behavior that we had prior to PR #153, while still supporting the use case outlined in #151.

This fix is critical for anyone who mocks window in Node.js with any of our globals.

@sindresorhus
Copy link
Owner

Tests are failing.

@sholladay
Copy link
Collaborator Author

Tests are fixed. Needed a null check for older environments like Node 10.

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.

Regression in global property lookup
2 participants