Index: sdk/lib/core/uri.dart |
diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart |
index de2c38bbf8ab6558ca07e00c739b26f399b76b8f..8e501f386358cf25773a75f3d1c0ac7604672e93 100644 |
--- a/sdk/lib/core/uri.dart |
+++ b/sdk/lib/core/uri.dart |
@@ -751,7 +751,7 @@ class Uri { |
static _checkWindowsPathReservedCharacters(List<String> segments, |
bool argumentError, |
[int firstSegment = 0]) { |
- segments.skip(firstSegment).forEach((segment) { |
+ for (var segment in segments.skip(firstSegment)) { |
if (segment.contains(new RegExp(r'["*/:<>?\\|]'))) { |
if (argumentError) { |
throw new ArgumentError("Illegal character in path"); |
@@ -759,7 +759,7 @@ class Uri { |
throw new UnsupportedError("Illegal character in path"); |
} |
} |
- }); |
+ } |
} |
static _checkWindowsDriveLetter(int charCode, bool argumentError) { |