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: simplify globals access, fix global != global #1340

Merged
merged 2 commits into from May 20, 2022

Conversation

sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented May 20, 2022

Fixes #1323
Fixes #1335

@netlify
Copy link

netlify bot commented May 20, 2022

‼️ Deploy request for vitest-dev rejected.

Name Link
🔨 Latest commit 6997418

@@ -119,3 +119,10 @@ it('can call global functions without window works as expected', async () => {
expect(() => self.requestAnimationFrame(noop)).not.toThrow()
expect(() => globalThis.requestAnimationFrame(noop)).not.toThrow()
})

it('globals are the same', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe we need test/dom, where we can change env in ci to not duplicate code

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.

Possible regression from 0.10.5 to 0.11.0 onward Happy DOM - window.Blob is not equal to globalThis.Blob
2 participants