VM: [Kernel] Pass correct parameters to fasta's TranslateUri.parse.

Signature is TranslateUri.parse(Uri sdk, [Uri uri]) so path to the packages
file should be passed as a second argument and not the first one.

R=kustermann@google.com
BUG=

Review-Url: https://codereview.chromium.org/2720693003 .
This commit is contained in:
Vyacheslav Egorov 2017-02-27 14:00:54 +01:00
parent b026aed3cf
commit 3b7a956e0c

View file

@ -113,7 +113,8 @@ Future<CompilationResult> parseScriptImpl(
Target target = getTarget("vm", new TargetFlags(strongMode: false));
Program program;
final uriTranslator = await TranslateUri.parse(new Uri.file(packageConfig));
final uriTranslator =
await TranslateUri.parse(null, new Uri.file(packageConfig));
final Ticker ticker = new Ticker(isVerbose: verbose);
final DillTarget dillTarget = new DillTarget(ticker, uriTranslator);
dillTarget.read(new Uri.directory(sdkPath).resolve('platform.dill'));