Use Uri.file expecting filepath (#4646)

This commit is contained in:
Alexander Aprelev 2018-02-07 15:24:44 -08:00 committed by GitHub
parent 32c241dd88
commit d5259d3af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ class _FrontendCompiler implements CompilerInterface {
if (options['incremental']) {
_entryPoint = filenameUri;
_compilerOptions = compilerOptions;
_generator = generator ?? _createGenerator(Uri.base.resolve(_kernelBinaryFilenameFull));
_generator = generator ?? _createGenerator(new Uri.file(_kernelBinaryFilenameFull));
await invalidateIfBootstrapping();
program = await _runWithPrintRedirection(() => _generator.computeDelta());
} else {
@ -260,7 +260,7 @@ class _FrontendCompiler implements CompilerInterface {
@override
void resetIncrementalCompiler() {
_generator = _createGenerator(Uri.base.resolve(_kernelBinaryFilenameFull));
_generator = _createGenerator(new Uri.file(_kernelBinaryFilenameFull));
_kernelBinaryFilename = _kernelBinaryFilenameFull;
}