| Index: runtime/bin/socket_patch.dart
|
| diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
|
| index 1ec51b77795faff13c3a030cd6c553d4ed713ba3..765152a43bbe99e4afb9d0a141187e9bf8ba207b 100644
|
| --- a/runtime/bin/socket_patch.dart
|
| +++ b/runtime/bin/socket_patch.dart
|
| @@ -320,8 +320,6 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| // a HttpServer, a WebSocket connection, a process pipe, etc.
|
| Object owner;
|
|
|
| - static double get timestamp => sw.elapsedMicroseconds / 1000000.0;
|
| -
|
| static Future<List<InternetAddress>> lookup(
|
| String host, {InternetAddressType type: InternetAddressType.ANY}) {
|
| return _IOService._dispatch(_SOCKET_LOOKUP, [host, type._value])
|
| @@ -387,7 +385,7 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| return lookup(host)
|
| .then((addresses) {
|
| if (addresses.isEmpty) {
|
| - throw createError(response, "Failed host lookup: '$host'");
|
| + throw createError(null, "Failed host lookup: '$host'");
|
| }
|
| return addresses;
|
| });
|
| @@ -477,7 +475,7 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| return lookup(host)
|
| .then((list) {
|
| if (list.length == 0) {
|
| - throw createError(response, "Failed host lookup: '$host'");
|
| + throw createError(null, "Failed host lookup: '$host'");
|
| }
|
| return list[0];
|
| });
|
| @@ -515,7 +513,7 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| return lookup(host)
|
| .then((list) {
|
| if (list.length == 0) {
|
| - throw createError(response, "Failed host lookup: '$host'");
|
| + throw createError(null, "Failed host lookup: '$host'");
|
| }
|
| return list[0];
|
| });
|
| @@ -1709,7 +1707,8 @@ patch class RawDatagramSocket {
|
| }
|
| }
|
|
|
| -class _RawDatagramSocket extends Stream implements RawDatagramSocket {
|
| +class _RawDatagramSocket extends Stream<RawSocketEvent>
|
| + implements RawDatagramSocket {
|
| _NativeSocket _socket;
|
| StreamController<RawSocketEvent> _controller;
|
| bool _readEventsEnabled = true;
|
|
|