Dart: unhandledExceptionCallback is ignored
问题 Here is a very simple code that I run using command line dart to demonstrate my point: import 'dart:isolate'; void isolateMain() { throw new Exception("ouch"); } bool handleException(IsolateUnhandledException e) { print("EXCEPTION in isolate: " + e.toString()); return true; } void main() { SendPort sendPort = spawnFunction(isolateMain, handleException); sendPort.call("Hello").then((e) { print("Main received " + e); }); } and the output: Exception: ouch #0 isolateMain (file:///Users/salomon