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

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

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
index 9c7b19d2173ff9fa4f679eda9747b65d3369c595..5119cf2ff93523422820c1ccd07caff7c01933da 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
@@ -103,7 +103,8 @@ patch ReceivePort get port {
return _lazyPort;
}
-patch SendPort spawnFunction(void topLevelFunction()) {
+patch SendPort spawnFunction(void topLevelFunction(),
+ [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) {
final name = _IsolateNatives._getJSFunctionName(topLevelFunction);
if (name == null) {
throw new UnsupportedError(
@@ -112,7 +113,8 @@ patch SendPort spawnFunction(void topLevelFunction()) {
return _IsolateNatives._spawn(name, null, false);
}
-patch SendPort spawnUri(String uri) {
+patch SendPort spawnUri(String uri,
+ [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) {
return _IsolateNatives._spawn(null, uri, false);
}

Powered by Google App Engine
This is Rietveld 408576698