[dart2js] crash when using records with null-assertions #52276
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
This program crashes during SSA:
With the following stack when run as:
dart compile js --null-assertions repro.dart
Note that
--null-assertions
this is only valuable with mixed-mode programs using unsound null safety, so this doesn't affect users of Dart 3 and the fix doesn't need to be cherry-picked.It does reveal that our compiler still allows using this flag with sound programs, which is unnecessary and may require additional cleanup.
The text was updated successfully, but these errors were encountered: