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

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

Issue 2797443007: fix #29182, generate top level const fields lazily (Closed)
Patch Set: fix Created 3 years, 8 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 13f5e723683df1d1a15d9faa746e3c47ac05cf4f..cd572250a6f007f22b9636c73a464dec992db46b 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -156,9 +156,13 @@ main(List<String> arguments) {
compiler = new ModuleCompiler(analyzerOptions);
}
JSModuleFile module = null;
+ var exception, stackTrace;
try {
module = compiler.compile(unit, options);
- } catch (e) {}
+ } catch (e, st) {
+ exception = e;
+ stackTrace = st;
+ }
bool expectedCompileTimeError =
contents.contains(': compile-time error\n');
@@ -167,7 +171,8 @@ main(List<String> arguments) {
if (module == null) {
expect(crashing, isTrue,
- reason: "test $name crashes during compilation.");
+ reason: "test $name crashes during compilation.\n"
+ "$exception\n$stackTrace");
} else if (module.isValid) {
_writeModule(
path.join(codegenOutputDir, name),

Powered by Google App Engine
This is Rietveld 408576698