mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:10:22 +00:00
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:
parent
b026aed3cf
commit
3b7a956e0c
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue