Skip to content

[worklets] imports requires WorkletGlobalScope creation to be immediate #377

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

Closed
asajeffrey opened this issue Apr 6, 2017 · 2 comments · Fixed by #375
Closed

[worklets] imports requires WorkletGlobalScope creation to be immediate #377

asajeffrey opened this issue Apr 6, 2017 · 2 comments · Fixed by #375

Comments

@asajeffrey
Copy link

https://drafts.css-houdini.org/worklets/#dom-worklet-import step 4 is:

Ensure that there is at least one WorkletGlobalScope in the worklet’s WorkletGlobalScopes. If not create a WorkletGlobalScope given the current Worklet.

This creates a new WorkletGlobalScope immediately, and doesn't allow WorkletGlobalScope creation to be in another thread. Could this step be moved into the "in parallel" steps?

@bfgeek
Copy link
Contributor

bfgeek commented Apr 6, 2017

This is being fixed in: PR #375

:)

"create a WorkletGlobalScope" is now async and waits for the thread-hop to complete.

@asajeffrey
Copy link
Author

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants