Closed munificent closed 8 years ago
I might be missing something obvious, can you clarify? The only iteration I see is for _objects
, which is a list.
_observers
is a list, _objects
is a map.
Sorry, thanks for clarifying, I mixed those up when looking at the original definition.
I however see the implementation going through _objects.values
here: https://github.com/dart-lang/observe/blob/master/lib/src/path_observer.dart#L854?
We sent Jake back in time to fix that bug in April, 2015 :) https://github.com/dart-lang/observe/commit/354778b4d7e5629d6f1feae1f13c307a971fe761
I'm going to tentatively close as this looks like it was fixed and more recent versions have been published...
Heh, oops! Looks like the observatory folks need to upgrade to the latest observe package in the Dart repo then.
cc @johnmccutchan
I'm adding better static analysis of for-in loops to analyzer, and I discovered an error in observe. In path_observer.dart:
Map doesn't implement Iterable, so that's not going to do anything good (and now it generates a static warning). You probably want
_objects.value
.