Index: sdk/lib/_internal/js_runtime/lib/io_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/io_patch.dart b/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
index 59aa7fff52f5b3f87b5c9250dcef697a5fec4fe3..2dabd3123d6ea8ce7f39c9bdce03fca95ca626df 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
@@ -419,7 +419,8 @@ class ServerSocket { |
@patch |
class RawSocket { |
@patch |
- static Future<RawSocket> connect(host, int port, {sourceAddress}) { |
+ static Future<RawSocket> connect(host, int port, |
+ {sourceAddress, Duration timeout}) { |
throw new UnsupportedError("RawSocket constructor"); |
} |
} |
@@ -427,7 +428,8 @@ class RawSocket { |
@patch |
class Socket { |
@patch |
- static Future<Socket> connect(host, int port, {sourceAddress}) { |
+ static Future<Socket> connect(host, int port, |
+ {sourceAddress, Duration timeout}) { |
throw new UnsupportedError("Socket constructor"); |
} |
} |