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

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

Issue 153553009: Implement Isolate.pause in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 10 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 | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | tests/isolate/isolate.status » ('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 09b79553abb1d1787346d0d78d9af8f98e5d8e9b..9d931a95c995a27ff274bf39647c925fc021511c 100644
--- a/sdk/lib/_internal/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/lib/isolate_patch.dart
@@ -15,7 +15,7 @@ patch class Isolate {
patch static Future<Isolate> spawn(void entryPoint(message), var message) {
try {
return IsolateNatives.spawnFunction(entryPoint, message)
- .then((controlPort) => new Isolate._fromControlPort(controlPort));
+ .then((msg) => new Isolate._fromControlPort(msg[1], msg[2]));
} catch (e, st) {
return new Future<Isolate>.error(e, st);
}
@@ -34,7 +34,7 @@ patch class Isolate {
throw new ArgumentError("Args must be a list of Strings $args");
}
return IsolateNatives.spawnUri(uri, args, message)
- .then((controlPort) => new Isolate._fromControlPort(controlPort));
+ .then((msg) => new Isolate._fromControlPort(msg[1], msg[2]));
} catch (e, st) {
return new Future<Isolate>.error(e, st);
}
« no previous file with comments | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698