-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[null-safety] implement autodetection for the web #70126
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
Conversation
|
Autodetect doesn't work the same way on the web because the tool is ultimately responsible for 1) providing a separate sound or unsound dill 2) serving the precompiled sound dart_sdk.js or unsound dart_sdk.js |
| ...?buildInfo.extraFrontEndOptions, | ||
| '--sound-null-safety', | ||
| ]; | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
yjbanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| /// Attempts to read the language version of a dart [file], returning | ||
| /// the entire comment. | ||
| /// The first language version where null safety was available by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sound or unsound?
Also, nit, end with a period.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Language versions aren't sound or unsound. Sound = all libraries have a language version gte 2.12
) * Update engine hash to 1.24.0-10.1.pre * [null-safety] implement null-safe autodetection for the web (#70126) Fixes #69416 Fixes #70121 * [flutter_tools] dont use autodetect enum for web (#70189) * Update engine hash for build fix and pub DEP bump Co-authored-by: Jonah Williams <jonahwilliams@google.com>

Description
Fixes #69416
Fixes #70121
Update determineLanguageVersion to read the language version, not just as a comment. Use this to determine which runtime mode to support on the web, removing the use of autodetect enum entirely
This logic needs to expanded in the future to support the language version queries and null safety analytics