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

Unified Diff: sdk/lib/_internal/lib/isolate_patch.dart

Issue 70263002: Add RawReceivePort to dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/isolate_patch.dart
diff --git a/sdk/lib/_internal/lib/isolate_patch.dart b/sdk/lib/_internal/lib/isolate_patch.dart
index 057e571d71664e3d2f9e0ddde4d828f5d1a77e76..69fa23ef41e8f5334a455099dbde546d125e3074 100644
--- a/sdk/lib/_internal/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/lib/isolate_patch.dart
@@ -7,6 +7,7 @@
import 'dart:_isolate_helper' show IsolateNatives,
lazyPort,
ReceivePortImpl,
+ RawReceivePortImpl,
CloseToken,
JsIsolateSink;
@@ -34,17 +35,15 @@ patch class Isolate {
/** Default factory for receive ports. */
patch class ReceivePort {
- patch factory ReceivePort() {
- return new ReceivePortImpl();
- }
+ patch factory ReceivePort() = ReceivePortImpl;
patch factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) {
- throw new UnimplementedError("ReceivePort.fromRawReceivePort");
+ return new ReceivePortImpl.fromRawReceivePort(rawPort);
}
}
patch class RawReceivePort {
patch factory RawReceivePort([void handler(event)]) {
- throw new UnimplementedError("RawReceivePort");
+ return new RawReceivePortImpl(handler);
}
}
« no previous file with comments | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698