| Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| index d4dfd77636681659fb41bb942bdb862eed5b60bd..54f998f9f829504f81f385d9906c682161f8c123 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
|
| @@ -562,7 +562,7 @@ void helpAndFail(String message) {
|
| }
|
|
|
| void mainWithErrorHandler(Options options) {
|
| - new Future.sync(() => compilerMain(options)).catchError((exception) {
|
| + runZonedExperimental(() => compilerMain(options), onError: (exception) {
|
| try {
|
| print('Internal error: $exception');
|
| } catch (ignored) {
|
|
|