-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
worker: add test for messagePort.onmessage #21510
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM :) Would be great if you could come up with ideas for tests for worker and make them good-first-contribution
Also, maybe add yourself to @nodejs/workers?
Writing tests is a good way for me to test if the API meets my expectations, but I'll keep that in mind :)
Thanks for the suggestion, done! |
There should be an equivalent test for |
@itaysabato do you want to take a stab at those tests @TimothyGu just outlined in #21510 (comment)? |
Note to self: change commit prefix to |
PR-URL: #21510 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in f5db04d |
This landed without the commit message change. Probably not a big deal, only affects the CHANGELOG/Release Notes? |
PR-URL: #21510 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Ah... just saw the note to self from @targos ... yeah, I don't think it's super critical |
@nodejs/workers
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes