Index: runtime/lib/isolate_patch.dart |
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart |
index 451b21956a11ccd260b6c49f2e25a36654157726..20d8089f84fa7743971825f738aa3d8e7f778e55 100644 |
--- a/runtime/lib/isolate_patch.dart |
+++ b/runtime/lib/isolate_patch.dart |
@@ -123,7 +123,11 @@ patch ReceivePort get port { |
return _portInternal; |
} |
-patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction"; |
+patch spawnFunction(void topLevelFunction(), |
+ [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) |
+ native "isolate_spawnFunction"; |
-patch spawnUri(String uri) native "isolate_spawnUri"; |
+patch spawnUri(String uri, |
+ [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) |
+ native "isolate_spawnUri"; |