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

Unified Diff: runtime/bin/socket_patch.dart

Issue 78223002: Fix dart2js after InternetAddress change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/io_patch.dart » ('j') | sdk/lib/_internal/lib/io_patch.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 49fca7986e6744b6ae40c12f1a0c81357d327760..789dd001399664a3632d3f8e33467a49e198f5bb 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -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);
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/io_patch.dart » ('j') | sdk/lib/_internal/lib/io_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698