mirror of
https://github.com/dart-lang/sdk
synced 2024-09-22 20:23:41 +00:00
Fix dart2js after InternetAddress change
R=ajohnsen@google.com, ngeoffray@google.com BUG= Review URL: https://codereview.chromium.org//78223002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30459 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
8b7322c1e1
commit
26f89dbd7f
|
@ -36,6 +36,10 @@ patch class InternetAddress {
|
||||||
return _InternetAddress.ANY_IP_V6;
|
return _InternetAddress.ANY_IP_V6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* patch */ factory InternetAddress(String address) {
|
||||||
|
return new _InternetAddress.parse(address);
|
||||||
|
}
|
||||||
|
|
||||||
/* patch */ static Future<List<InternetAddress>> lookup(
|
/* patch */ static Future<List<InternetAddress>> lookup(
|
||||||
String host, {InternetAddressType type: InternetAddressType.ANY}) {
|
String host, {InternetAddressType type: InternetAddressType.ANY}) {
|
||||||
return _NativeSocket.lookup(host, type: type);
|
return _NativeSocket.lookup(host, type: type);
|
||||||
|
|
|
@ -233,6 +233,9 @@ patch class InternetAddress {
|
||||||
patch static InternetAddress get ANY_IP_V6 {
|
patch static InternetAddress get ANY_IP_V6 {
|
||||||
throw new UnsupportedError("InternetAddress.ANY_IP_V6");
|
throw new UnsupportedError("InternetAddress.ANY_IP_V6");
|
||||||
}
|
}
|
||||||
|
patch InternetAddress(String address) {
|
||||||
|
throw new UnsupportedError("InternetAddress");
|
||||||
|
}
|
||||||
patch static Future<List<InternetAddress>> lookup(
|
patch static Future<List<InternetAddress>> lookup(
|
||||||
String host, {InternetAddressType type: InternetAddressType.ANY}) {
|
String host, {InternetAddressType type: InternetAddressType.ANY}) {
|
||||||
throw new UnsupportedError("InternetAddress.lookup");
|
throw new UnsupportedError("InternetAddress.lookup");
|
||||||
|
|
|
@ -111,8 +111,7 @@ abstract class InternetAddress {
|
||||||
* (dotted-decimal notation) or IPv6 (hexadecimal representation).
|
* (dotted-decimal notation) or IPv6 (hexadecimal representation).
|
||||||
* address [ArgumentError] is thrown.
|
* address [ArgumentError] is thrown.
|
||||||
*/
|
*/
|
||||||
factory InternetAddress(String address) =>
|
external InternetAddress(String address);
|
||||||
new _InternetAddress.parse(address);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform a reverse dns lookup on the [address], creating a new
|
* Perform a reverse dns lookup on the [address], creating a new
|
||||||
|
|
Loading…
Reference in a new issue