未验证 提交 d5259d3a 编写于 作者: A Alexander Aprelev 提交者: GitHub

Use Uri.file expecting filepath (#4646)

上级 32c241dd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册