JavaScript compilers support for --null-assertions
in Dart 3.0
#50711
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
P2
A bug or feature request we're likely to work on
web-dart2js
web-dev-compiler
Milestone
Regarding the
--null-assertions
flag. It provides enhanced null safety errors when running without sound null safety. It was added as a tool to assist in large scale migrations so you can migrate a library and get some null safety errors at runtime when testing an app that isn't fully migrated. I believe this feature is considered totally obsolete in a world where all code being compiled should be null safe.For DDC this is a question of what flags are supported when you try to run a debug app with package:webdev or flutter web. For dart2js it includes those and what flags are available through
dart compile js
.cc @sigmundch @jakemac53 @fishythefish @mit-mit @itsjustkevin
The text was updated successfully, but these errors were encountered: