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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 1240743003: Add errorsAreFatal, onExit and onError parameters to the spawn functions. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix typo Created 5 years, 5 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 | « no previous file | sdk/lib/_internal/js_runtime/lib/isolate_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index 1fd87bfb0c142f09ad62874bbae6a54c2a9d2e66..0dff00247d4d12b293f51b525a3d2b0b64eeec92 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -274,7 +274,9 @@ patch class Isolate {
/* patch */ static Isolate get current => _currentIsolate;
/* patch */ static Future<Isolate> spawn(
- void entryPoint(message), var message, { bool paused: false }) {
+ void entryPoint(message), var message,
+ {bool paused: false, bool errorsAreFatal,
+ SendPort onExit, SendPort onError}) {
// `paused` isn't handled yet.
RawReceivePort readyPort;
try {
@@ -303,7 +305,8 @@ patch class Isolate {
/* patch */ static Future<Isolate> spawnUri(
Uri uri, List<String> args, var message,
- { bool paused: false, bool checked, Uri packageRoot }) {
+ {bool paused: false, bool checked, Uri packageRoot, bool errorsAreFatal,
+ SendPort onExit, SendPort onError}) {
RawReceivePort readyPort;
try {
// The VM will invoke [_startIsolate] and not `main`.
« no previous file with comments | « no previous file | sdk/lib/_internal/js_runtime/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698