Index: pkg/kernel/test/closures/suite.dart |
diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart |
index 45bde02a7616b6d827e6d4f53c7c6b7a8038f165..3f66f338c7cbd6eea283e02f268a2fd8c6590e79 100644 |
--- a/pkg/kernel/test/closures/suite.dart |
+++ b/pkg/kernel/test/closures/suite.dart |
@@ -41,6 +41,8 @@ import 'package:kernel/kernel.dart' show loadProgramFromBinary; |
import 'package:kernel/target/targets.dart' show TargetFlags; |
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget; |
+ |
const String STRONG_MODE = " strong mode "; |
class ClosureConversionContext extends ChainContext { |
@@ -101,9 +103,8 @@ class FastaCompile |
TestDescription description, ClosureConversionContext context) async { |
Program platform = await context.loadPlatform(); |
Ticker ticker = new Ticker(); |
- DillTarget dillTarget = new DillTarget( |
- ticker, context.uriTranslator, "vm_fasta", |
- flags: new TargetFlags(strongMode: context.strongMode)); |
+ DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator, |
+ new VmFastaTarget(new TargetFlags(strongMode: context.strongMode))); |
platform.unbindCanonicalNames(); |
dillTarget.loader.appendLibraries(platform); |
KernelTarget sourceTarget = new KernelTarget( |