-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Define "dart.library.mirrors" and "dart.library.isolate" as false in dartdevc #30540
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
Comments
I discovered that dart:html and dart:io import dart:isolate. HTML only exists in dart4web, so we can remove that dependency and refactor APIs that use it. See also #32293 (disable dart:isolate in DDC) |
I was thinking compile time error. @sigmundch @kevmoo is that consistent with your understanding? |
🤷♂️ |
Agree it should be a compile-time error. It seems like the only API that uses dart:isolate from dart:html is However, I don't believe we can ban importing dart:io at this time. That is currently needed to support package:http for a bit longer (we had to go out of our way to allow it in dart2js temporarily). Two ideas come to mind:
I currently prefer the latter. We could also do the latter by introducing an actual Thoughts? |
Yeah, dart:html is very easy to fix (change I think I have a fix for dart:io as well. It turned out the only usage was SendPort, for one unused field, and one private class/private method for the VM. I have removed it from the API signature of that private class in dart:io. Testing it out now. :) |
Since Dart 2.0 does not support those libraries on the web (#30538), the
fromEnvironment()
flags for those should return false.The text was updated successfully, but these errors were encountered: