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(playground/cases): replace window.onmessage with self.onmessage in worker test case #7431

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

shulaoda
Copy link
Collaborator

@shulaoda shulaoda commented Aug 3, 2024

Summary

This error was introduced by #7387 , which incorrectly used the global window object in a Web Worker context.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Aug 3, 2024
Copy link

netlify bot commented Aug 3, 2024

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit cc6405f
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66af002c17cc9e00088adca8

@chenjiahan
Copy link
Member

Can you check this lint error?

https://github.com/web-infra-dev/rspack/actions/runs/10231160609/job/28306794667?pr=7431#step:5:11

@shulaoda shulaoda force-pushed the fix/error-worker-onmessage branch from 3065123 to cc6405f Compare August 4, 2024 04:14
@shulaoda
Copy link
Collaborator Author

shulaoda commented Aug 4, 2024

Can you check this lint error?

https://github.com/web-infra-dev/rspack/actions/runs/10231160609/job/28306794667?pr=7431#step:5:11

My negligence has been resolved. 👀

@chenjiahan chenjiahan merged commit b616f98 into web-infra-dev:main Aug 4, 2024
28 checks passed
@chenjiahan
Copy link
Member

Thanks!

@shulaoda shulaoda deleted the fix/error-worker-onmessage branch August 4, 2024 12:46
@chenjiahan chenjiahan mentioned this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants