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: calling global functions in happy-dom, refactor sharing global state #1262

Merged
merged 4 commits into from May 8, 2022

Conversation

sheremet-va
Copy link
Member

Fixes #1259

Also refactored shared state, so there is only one proxy to not create new objects every time for each global.

@netlify
Copy link

netlify bot commented May 8, 2022

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit e6d5650
🔍 Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/62774aff99f7e10008691565
😎 Deploy Preview https://deploy-preview-1262--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@antfu antfu changed the title Fix calling global functions in happy-dom, refactor sharing global state fix: calling global functions in happy-dom, refactor sharing global state May 8, 2022
@antfu antfu merged commit 555aba6 into vitest-dev:main May 8, 2022
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.

Since v0.11.0, Happy-DOM window/self/globalThis functions crash when not invoked with explicit 'this'
2 participants