Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: pkg/dev_compiler/test/codegen_test.dart

Issue 2647833002: fix #28008, fix #28009 implement FutureOr<T> (Closed)
Patch Set: add test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen_test.dart
diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
index 7ac885d05a2115081698bc760dc1cb797cdfdedf..27340a94ed0a37b35bf5c9f845b969cf982a705f 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -159,16 +159,21 @@ main(List<String> arguments) {
compiler = new ModuleCompiler(analyzerOptions);
}
JSModuleFile module = null;
+ var error, trace;
try {
module = compiler.compile(unit, options);
- } catch (e) {}
+ } catch (e, t) {
+ error = e;
+ trace = t;
+ }
bool notStrong = notYetStrongTests.contains(name);
bool crashing = _crashingTests.contains(name);
if (module == null) {
expect(crashing, isTrue,
- reason: "test $name crashes during compilation.");
+ reason: "test $name crashes during compilation.\n\n"
+ "Exception: $error\n\nStack trace:\n\n$trace");
} else if (module.isValid) {
_writeModule(
path.join(codegenOutputDir, name),

Powered by Google App Engine
This is Rietveld 408576698