Index: sdk/lib/_internal/compiler/implementation/compiler.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart |
index 0a96d2256d8f0a786e630cacff3260da90d60ce0..d0d79d31fa5538fecaa8ba89c39fd8ccbd2c0c4f 100644 |
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart |
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart |
@@ -762,7 +762,7 @@ abstract class Compiler implements DiagnosticListener { |
Future<bool> run(Uri uri) { |
totalCompileTime.start(); |
- return new Future.sync(() => runCompiler(uri)).catchError((error) { |
+ return new Future.sync(() => runCompiler(uri)).catchError((error, trace) { |
if (error is CompilerCancelledException) { |
log('Error: $error'); |
return false; |
@@ -775,7 +775,7 @@ abstract class Compiler implements DiagnosticListener { |
MessageKind.COMPILER_CRASHED.error().toString(), |
api.Diagnostic.CRASH); |
String message = 'The compiler crashed.'; |
- pleaseReportCrash(getAttachedStackTrace(error), message); |
+ pleaseReportCrash(trace, message); |
} |
} catch (doubleFault) { |
// Ignoring exceptions in exception handling. |