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

Unified Diff: runtime/bin/socket_patch.dart

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 months 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 | « pkg/compiler/lib/src/typechecker.dart ('k') | runtime/lib/convert_patch.dart » ('j') | no next file with comments »
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 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;
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | runtime/lib/convert_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698