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

main(args) could drag in lots of code #14455

Closed
floitschG opened this issue Oct 25, 2013 · 1 comment
Closed

main(args) could drag in lots of code #14455

floitschG opened this issue Oct 25, 2013 · 1 comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-isolate type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@floitschG
Copy link
Contributor

spawnUri is typed to receive a list of strings for "args". But a [sendport] would not raise any type check warnings.

This means that, even in checked mode, main(args) could receive a SendPort and would therefore require isolate support (with all the code this implies).

We should discuss how we want to fix this. One way is to check on the spawner side (which is what we currently do in dart2js, but not in the VM).
Another option is to check on the spawnee side.

Note: even with one argument we still need rudimentary isolate support since the program could be launched in a web-worker.

Assigning to dart2js, but it really is a Library/Dart2js issue.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 22, 2018
@matanlurey
Copy link
Contributor

Dart2JS doesn't support this API anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-isolate type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants