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:
sgjesse@google.com 2013-11-20 12:03:14 +00:00
parent 8b7322c1e1
commit 26f89dbd7f
3 changed files with 8 additions and 2 deletions

View file

@ -36,6 +36,10 @@ patch class InternetAddress {
return _InternetAddress.ANY_IP_V6;
}
/* patch */ factory InternetAddress(String address) {
return new _InternetAddress.parse(address);
}
/* patch */ static Future<List<InternetAddress>> lookup(
String host, {InternetAddressType type: InternetAddressType.ANY}) {
return _NativeSocket.lookup(host, type: type);

View file

@ -233,6 +233,9 @@ patch class InternetAddress {
patch static InternetAddress get ANY_IP_V6 {
throw new UnsupportedError("InternetAddress.ANY_IP_V6");
}
patch InternetAddress(String address) {
throw new UnsupportedError("InternetAddress");
}
patch static Future<List<InternetAddress>> lookup(
String host, {InternetAddressType type: InternetAddressType.ANY}) {
throw new UnsupportedError("InternetAddress.lookup");

View file

@ -111,8 +111,7 @@ abstract class InternetAddress {
* (dotted-decimal notation) or IPv6 (hexadecimal representation).
* address [ArgumentError] is thrown.
*/
factory InternetAddress(String address) =>
new _InternetAddress.parse(address);
external InternetAddress(String address);
/**
* Perform a reverse dns lookup on the [address], creating a new