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

dart2js + isolates: Make use of D8 Workers #30217

Closed
rakudrama opened this issue Jul 20, 2017 · 0 comments
Closed

dart2js + isolates: Make use of D8 Workers #30217

rakudrama opened this issue Jul 20, 2017 · 0 comments

Comments

@rakudrama
Copy link
Member

We 'removed' D8 Workers in js_runtime/preambles/d8.js to force a fall-back on using existing loaded code.

We should try to use D8 Workers. They are not very compatible:

  • D8 Workers take a script instead of a URI (or, for D8, filename would be suitable.)
  • We could try to pass the script load("filename")
  • Errors in the script cause errors in the calling isolate, rather than calling onerror.
  • MessagePorts are not implemented

D8 Workers could be improved to better resemble browser Workers. Another issue a use case for this.

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

No branches or pull requests

3 participants