google / perf_api.dart

Apache License 2.0
8 stars 19 forks source link

Profiler, Counters constructors marked const when they are not #4

Closed yjbanov closed 9 years ago

yjbanov commented 10 years ago

Counters cannot be const because the map inside it is not const.

Profiler cannot be const because Counters inside it is instantiated with new, but as explained above Counters itself cannot be const anyway.

Solution: drop the const