Late members declared with initializers are not initialized at optimization level 0 of dart2js #49599
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dart2js
A class with a late member, declared with an initializer, fails to get initialized when accessed if
the program is compiled with dart2js optimization level 0.
The initialization is carried out correctly at higher optimization levels.
The command
creates a compiled program that fails on Chrome, with the exception:
on the program
The error is present on the stable branch, and on current tip-of-tree 2.19.0-59.0.dev.
The text was updated successfully, but these errors were encountered: