Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/io_patch.dart

Issue 14619008: Add static getters for common internet addresses (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
index 7946da31af8bb5379b7ac8e07f7c988e3d6a09bf..a34694a6ce8836a6cb4ab487ed61f3b095b69fad 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
@@ -194,8 +194,20 @@ patch class Process {
}
patch class InternetAddress {
+ patch static InternetAddress get LOOPBACK_IP_V4 {
+ throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4");
+ }
+ patch static InternetAddress get LOOPBACK_IP_V6 {
+ throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V6");
+ }
+ patch static InternetAddress get ANY_IP_V4 {
+ throw new UnsupportedError("InternetAddress.ANY_IP_V4");
+ }
+ patch static InternetAddress get ANY_IP_V6 {
+ throw new UnsupportedError("InternetAddress.ANY_IP_V6");
+ }
patch static Future<List<InternetAddress>> lookup(
- String host, {InternetAddressType type: InternetAddressType.IPv4}) {
+ String host, {InternetAddressType type: InternetAddressType.IP_V4}) {
throw new UnsupportedError("InternetAddress.lookup");
}
}

Powered by Google App Engine
This is Rietveld 408576698