343ffd1ea8
We can't use `uri.path` to get a file path from a `file:///` URI because on Windows it will be incorrect. Instead, we should use `toFilePath()`... however, it's possible in future we'll have non-file URIs here (macros etc.), so it's better to compare URIs directly. Fixes https://github.com/dart-lang/sdk/issues/59615 Change-Id: I9b4badb96edc9f7dae57b1fa399d0e4fef8bb86a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397620 Reviewed-by: Keerti Parthasarathy <keertip@google.com> Reviewed-by: Jaime Wren <jwren@google.com> Commit-Queue: Keerti Parthasarathy <keertip@google.com>