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

Don't imply this return value for addModule method #73

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

josephrocca
Copy link
Contributor

By putting the addModule call on its own line in this example the code example implies less about how it works, leaving open possibilities for stuff like this in the reader's imagination: whatwg/html#6911 (comment)

Please feel free to close this if it's too trite (since this proposal isn't about the inner workings of addModule). Just making this suggestion because I'm excited about the ideas discussed in the previously-linked issue. Thanks!

Copy link
Member

@littledan littledan left a comment

Choose a reason for hiding this comment

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

Yeah, let's land this change. The code sample there is just buggy, since addModule doesn't return the worker at all. See https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule#return_value

@nicolo-ribaudo nicolo-ribaudo merged commit 03276b0 into tc39:main Oct 20, 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.

3 participants