Index: tests/compiler/dart2js/serialization/compilation_test_helper.dart |
diff --git a/tests/compiler/dart2js/serialization/compilation_test_helper.dart b/tests/compiler/dart2js/serialization/compilation_test_helper.dart |
index 0a44ce2e428c33bf95d17dd7886fce7a46a75e51..e1d43712887c5e38f7dbf0d67fa6174582be2e53 100644 |
--- a/tests/compiler/dart2js/serialization/compilation_test_helper.dart |
+++ b/tests/compiler/dart2js/serialization/compilation_test_helper.dart |
@@ -26,10 +26,13 @@ main(List<String> args) { |
await serializeDartCore(arguments: arguments); |
if (arguments.filename != null) { |
Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); |
+ SerializationResult result = await serialize(entryPoint, |
+ memorySourceFiles: serializedData.toMemorySourceFiles(), |
+ resolutionInputs: serializedData.toUris()); |
await compile( |
entryPoint, |
- resolutionInputs: serializedData.toUris(), |
- sourceFiles: serializedData.toMemorySourceFiles()); |
+ resolutionInputs: result.serializedData.toUris(), |
+ sourceFiles: result.serializedData.toMemorySourceFiles()); |
} else { |
Uri entryPoint = Uri.parse('memory:main.dart'); |
await arguments.forEachTest(serializedData, TESTS, compile); |
@@ -51,7 +54,7 @@ Future compile( |
OutputCollector outputCollector = new OutputCollector(); |
await measure(title, 'compile', () async { |
List<String> options = []; |
- if (test.checkedMode) { |
+ if (test != null && test.checkedMode) { |
options.add(Flags.enableCheckedMode); |
} |
await runCompiler( |