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 61638b4fa5e7d3092eecea3bc14ba6181e3b0940..759f6731c1c00f73b7f2e0dae056f01172abcd01 100644 |
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart |
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart |
@@ -754,7 +754,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; |
@@ -767,7 +767,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. |