Index: utils/kernel-service/kernel-service.dart |
diff --git a/utils/kernel-service/kernel-service.dart b/utils/kernel-service/kernel-service.dart |
index d162465e1d38c77aa5afe69334b48f42c2b83ac8..2247961726ea97bc6e2d14ec9c90c6a0414d583d 100644 |
--- a/utils/kernel-service/kernel-service.dart |
+++ b/utils/kernel-service/kernel-service.dart |
@@ -185,9 +185,10 @@ Future<CompilationResult> parseScriptImpl(DartLoaderBatch batch_loader, |
packagePath: packageConfig, |
customUriMappings: const {}, |
declaredVariables: const {}); |
+ program = new Program(); |
DartLoader loader = |
- await batch_loader.getLoader(new Repository(), dartOptions); |
- program = loader.loadProgram(fileName, target: target); |
+ await batch_loader.getLoader(program, dartOptions); |
+ loader.loadProgram(fileName, target: target); |
if (loader.errors.isNotEmpty) { |
return new CompilationError(loader.errors.toList(growable: false)); |