-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dart_SetLibraryTagHandler exits when called without a current isolate #3169
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
This is true for many functions in the dart api. If there is no current isolate then, as things currently stand, we can't make any handles at all, including error handles. I have two options:
I'll think on it. |
This comment was originally written by [email protected] It'd be great if it was possible to return a handle wrapping a statically allocated error message. If Dart is embedded in e.g. a web server, then killing the process (and all serving threads) is problematic, even if the cause is misuse of the API. But I understand this is tricky, and it's more of a frustration than a blocker for me. |
Removed Priority-Medium label. |
Removed this from the M6 milestone. |
Stale. |
Changes: ``` > git log --format="%C(auto) %h %s" 37d0592..0764437 https://dart.googlesource.com/pub.git/+/07644370 Make gitignore validator use gitignores from repo-root and down. (#3169) https://dart.googlesource.com/pub.git/+/205ea58c Handle build-versions when reformatting ranges (#3170) https://dart.googlesource.com/pub.git/+/8f7bfb8c migrate 3 leaf files to null-safety (#3168) https://dart.googlesource.com/pub.git/+/df5db1f1 Extract some parts of pubspec parsing to a null-safe library. (#3160) ``` Diff: https://dart.googlesource.com/pub.git/+/37d05928939b3100e7e55c3dff922651db1de1e1~..0764437088fd58eb7af779ecef66bab40dfcf2e9/ Change-Id: I8d938dbf6c3fba3c3f4d98bbaa5835acfaf132a7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216020 Reviewed-by: Sarah Zakarias <[email protected]> Commit-Queue: Sigurd Meldgaard <[email protected]>
This issue was originally filed by [email protected]
This function is documented to return an error handle, but instead exits if called outside of any isolate.
The text was updated successfully, but these errors were encountered: