mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:29:48 +00:00
0e5a539315
Flutter in google3 uses --delete-tostring-package-uri compiler option to remove toString methods in package:flutter and dart:ui to reduce size in release mode. This has unfortunate effect of removing toString methods from exception classes which may provide valuable information for investigating problems seen in the wild. This change adds a new @pragma('flutter:keep-to-string-in-subtypes') on classes to keep toString methods on all subtypes of the annotated classes. This pragma is now used on Exception and Error classes in dart:core. TEST=pkg/vm/test/transformations/to_string_transformer_test.dart Issue: https://github.com/flutter/flutter/issues/61562 Change-Id: Ib739c83cdf6b539208f705ba198e63b8bc54fa61 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227920 Reviewed-by: Dan Field <dnfield@google.com> Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
compiler | ||
images | ||
infra | ||
aot_binary_size_analysis.md | ||
dwarf_stack_traces.md | ||
gc.md | ||
index.md | ||
pragmas.md | ||
snapshot_profiling.md | ||
types.md |