breaking change #42714: web compilers disallow dart:mirrors imports

Skip to first unread message

Siggi Cherem

Jul 15, 2020, 6:58:33 PM7/15/20
`dart:mirrors` was deprecated on Dart for the web since 2.0.0. Both dart2js and DDC provided empty implementations of `dart:mirrors` that throw on every single API. Going forward both compilers will report a compile-time error when this library is imported.

Tools like webdev or flutter already show a compile-time error today, so this mostly affects users that work directly with the underlying tools (like invoking dart2js directly), if they happen to still have imports to `dart:mirrors` on their apps.

You can find more details at issue #42714. Please comment on the bug if you have questions or concerns.
Reply all
Reply to author
0 new messages