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

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

Issue 179823002: Add Isolate.onExit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 3858c159c137a456d0fe83ebdb149647d5a5a15f..8e6c6dd0ab3e5983505e2de0f3668d7e13081059 100644
--- a/sdk/lib/_internal/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/lib/isolate_patch.dart
@@ -16,7 +16,7 @@ patch class Isolate {
{ bool paused: false }) {
try {
return IsolateNatives.spawnFunction(entryPoint, message, paused)
- .then((msg) => new Isolate._fromControlPort(msg[1], msg[2]));
+ .then((msg) => new Isolate._fromControlPort(msg[1], msg[2], msg[3]));
} catch (e, st) {
return new Future<Isolate>.error(e, st);
}
@@ -35,7 +35,7 @@ patch class Isolate {
throw new ArgumentError("Args must be a list of Strings $args");
}
return IsolateNatives.spawnUri(uri, args, message, paused)
- .then((msg) => new Isolate._fromControlPort(msg[1], msg[2]));
+ .then((msg) => new Isolate._fromControlPort(msg[1], msg[2], msg[3]));
} catch (e, st) {
return new Future<Isolate>.error(e, st);
}

Powered by Google App Engine
This is Rietveld 408576698