mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Move assertion to realpath evaluation
This commit is contained in:
@@ -782,6 +782,7 @@ namespace ts {
|
||||
if (traceEnabled) {
|
||||
trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
|
||||
}
|
||||
Debug.assert(host.fileExists(real), `${path} linked to non-existing file ${real}`); // tslint:disable-line
|
||||
return real;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user